From 21c853a487e2fe41931eb9957891e4879d754145 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 16 Nov 2021 09:32:00 -0800 Subject: [PATCH] Seems compat to see 'No such image' when creating container [ NO NEW TESTS NEEDED ] Signed-off-by: Daniel J Walsh --- pkg/api/handlers/utils/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/handlers/utils/errors.go b/pkg/api/handlers/utils/errors.go index 4a8005bfd9..22894d4149 100644 --- a/pkg/api/handlers/utils/errors.go +++ b/pkg/api/handlers/utils/errors.go @@ -26,7 +26,7 @@ func Error(w http.ResponseWriter, apiMessage string, code int, err error) { // Log detailed message of what happened to machine running podman service log.Infof("Request Failed(%s): %s", http.StatusText(code), err.Error()) em := errorhandling.ErrorModel{ - Because: (errors.Cause(err)).Error(), + Because: strings.ReplaceAll((errors.Cause(err)).Error(), "image not known", "No such image"), Message: err.Error(), ResponseCode: code, }