diff --git a/cmd/htpacker/yaml.go b/cmd/htpacker/yaml.go index eb8eaba..042932e 100644 --- a/cmd/htpacker/yaml.go +++ b/cmd/htpacker/yaml.go @@ -128,7 +128,7 @@ func filesFromListR(prefix, arg string, ftp packer.FilesToPack) error { buf := make([]byte, 512) n, err := f.Read(buf) if err != nil { - return err + return fmt.Errorf("failed to read %s: %v", arg, err) } buf = buf[:n] ctype := http.DetectContentType(buf)