aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-29 04:59:34 -0400
committerGitHub <noreply@github.com>2020-06-29 04:59:34 -0400
commitcbae41f75f97372f0c8f713c523b96a7feeabd51 (patch)
tree24e8ab1b6e49febef7ddfcbf3436afd5320e0380 /pkg
parent3022d70285c2de2f6819a1637a06751d329eb751 (diff)
parentbabc64b44b341470f4f23569502f8e661b6561ec (diff)
downloadpodman-cbae41f75f97372f0c8f713c523b96a7feeabd51.tar.gz
podman-cbae41f75f97372f0c8f713c523b96a7feeabd51.tar.bz2
podman-cbae41f75f97372f0c8f713c523b96a7feeabd51.zip
Merge pull request #6763 from maxm123/master
Fix error handling problem in APIv2 network remove
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/compat/networks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/networks.go b/pkg/api/handlers/compat/networks.go
index 0f1eca5e5..7209255d7 100644
--- a/pkg/api/handlers/compat/networks.go
+++ b/pkg/api/handlers/compat/networks.go
@@ -285,7 +285,7 @@ func RemoveNetwork(w http.ResponseWriter, r *http.Request) {
return
}
if !exists {
- utils.Error(w, "network not found", http.StatusNotFound, err)
+ utils.Error(w, "network not found", http.StatusNotFound, network.ErrNetworkNotFound)
return
}
if err := network.RemoveNetwork(config, name); err != nil {