1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 09:45:38 +01:00

fix stdout error message

Signed-off-by: iTrooz <hey@itrooz.fr>
This commit is contained in:
iTrooz
2025-12-04 14:06:43 +01:00
committed by Nalin Dahyabhai
parent d130a74ab5
commit d543dd9b5c

View File

@@ -87,7 +87,7 @@ func ExportFromReader(input io.Reader, opts parse.BuildOutputOption) error {
}
case parse.BuildOutputStdout:
if _, err = io.Copy(os.Stdout, input); err != nil {
return fmt.Errorf("failed while performing copy to %q: %w", opts.Path, err)
return fmt.Errorf("failed while writing to stdout: %w", err)
}
case parse.BuildOutputTar:
outFile, err := os.Create(opts.Path)