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, }