diff --git a/build.go b/build.go index 7d374cbc4..c2cc8bbe5 100644 --- a/build.go +++ b/build.go @@ -208,7 +208,7 @@ func copyFile(dst, src string) error { err = os.Chtimes(dst, fi.ModTime(), fi.ModTime()) } - return nil + return err } // die prints the message with fmt.Fprintf() to stderr and exits with an error