From a1453b7242960b13df4f07cd953f862cbfb8e26e Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 11 Dec 2020 23:03:56 +0100 Subject: [PATCH] Fixup error messages --- pkg/compiler/backend/simpleimg.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/compiler/backend/simpleimg.go b/pkg/compiler/backend/simpleimg.go index 83fd84e6..3df8c3c7 100644 --- a/pkg/compiler/backend/simpleimg.go +++ b/pkg/compiler/backend/simpleimg.go @@ -59,7 +59,7 @@ func (*SimpleImg) RemoveImage(opts compiler.CompilerBackendOptions) error { defer SpinnerStop() out, err := exec.Command("img", buildarg...).CombinedOutput() if err != nil { - return errors.Wrap(err, "Failed building image: "+string(out)) + return errors.Wrap(err, "Failed removing image: "+string(out)) } Info(":tea: Image " + name + " removed") @@ -75,7 +75,7 @@ func (*SimpleImg) DownloadImage(opts compiler.CompilerBackendOptions) error { cmd := exec.Command("img", buildarg...) out, err := cmd.CombinedOutput() if err != nil { - return errors.Wrap(err, "Failed building image: "+string(out)) + return errors.Wrap(err, "Failed downloading image: "+string(out)) } Info(":tea: Image " + name + " downloaded") @@ -124,7 +124,7 @@ func (*SimpleImg) ExportImage(opts compiler.CompilerBackendOptions) error { Debug(":tea: Saving image " + name) out, err := exec.Command("img", buildarg...).CombinedOutput() if err != nil { - return errors.Wrap(err, "Failed building image: "+string(out)) + return errors.Wrap(err, "Failed exporting image: "+string(out)) } Info(":tea: Image " + name + " saved") return nil