From 7478ef27df51da8bb99cc514028c822b118975d5 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Sat, 2 Nov 2024 22:20:05 +0100 Subject: [PATCH] improve output of build.go#downloadFile when download fails --- scripts/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.go b/scripts/build.go index 81fe6e3ad1..09a5aa5769 100644 --- a/scripts/build.go +++ b/scripts/build.go @@ -208,7 +208,7 @@ func downloadFile(src, dest string, dirPerm, perm os.FileMode) error { defer resp.Body.Close() if resp.StatusCode >= 300 { - return fmt.Errorf("download response %[1]v", resp.StatusCode) + return fmt.Errorf("download file from %[2]s into %[3]s: response %[1]v", resp.StatusCode, src, dest) } if err := os.MkdirAll(filepath.Dir(dest), dirPerm); err != nil {