fixup! fixup! add should fail on 40x

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc
2020-06-20 10:42:59 +02:00
parent 8cc772ae9c
commit 999365f5f9
2 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -547,7 +547,7 @@ func DownloadFileToDest(rawurl, dest string, uid, gid int64) error {
defer resp.Body.Close()
if resp.StatusCode >= 400 {
return fmt.Errorf("%s failed with %d", rawurl, resp.StatusCode)
return fmt.Errorf("invalid response status %d", resp.StatusCode)
}
if err := CreateFile(dest, resp.Body, 0600, uint32(uid), uint32(gid)); err != nil {