diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-13 13:29:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 13:29:24 -0500 |
commit | 2b0cf7728d4cd59d19821a1324a8ac2dcd7d3cac (patch) | |
tree | b681487112bcfb24d8d7b08b2cfe4dfd39addd24 /pkg/api/handlers/compat/unsupported.go | |
parent | 9473dda87c10513527bb083719d642d493b6b356 (diff) | |
parent | 827f6c9cb01929a7c36a465d633c82d384ed7ddb (diff) | |
download | podman-2b0cf7728d4cd59d19821a1324a8ac2dcd7d3cac.tar.gz podman-2b0cf7728d4cd59d19821a1324a8ac2dcd7d3cac.tar.bz2 podman-2b0cf7728d4cd59d19821a1324a8ac2dcd7d3cac.zip |
Merge pull request #8954 from baude/reducebindingsize
Reduce general binding binary size
Diffstat (limited to 'pkg/api/handlers/compat/unsupported.go')
-rw-r--r-- | pkg/api/handlers/compat/unsupported.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/api/handlers/compat/unsupported.go b/pkg/api/handlers/compat/unsupported.go index e5ff266f9..1c518690f 100644 --- a/pkg/api/handlers/compat/unsupported.go +++ b/pkg/api/handlers/compat/unsupported.go @@ -4,9 +4,8 @@ import ( "fmt" "net/http" - "github.com/containers/podman/v2/pkg/domain/entities" - "github.com/containers/podman/v2/pkg/api/handlers/utils" + "github.com/containers/podman/v2/pkg/errorhandling" log "github.com/sirupsen/logrus" ) @@ -14,5 +13,5 @@ func UnsupportedHandler(w http.ResponseWriter, r *http.Request) { msg := fmt.Sprintf("Path %s is not supported", r.URL.Path) log.Infof("Request Failed: %s", msg) - utils.WriteJSON(w, http.StatusNotFound, entities.ErrorModel{Message: msg}) + utils.WriteJSON(w, http.StatusNotFound, errorhandling.ErrorModel{Message: msg}) } |