summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMaximilian Müller <maxm123@techie.com>2020-06-26 13:54:34 +0200
committerMaximilian Müller <maxm123@techie.com>2020-06-27 15:02:55 +0200
commitbabc64b44b341470f4f23569502f8e661b6561ec (patch)
tree58c3939f951d3133de2c6f00157b04f8c80769d2 /pkg
parent673116c063f173ae7ff799a920f9c1ca28194b9d (diff)
downloadpodman-babc64b44b341470f4f23569502f8e661b6561ec.tar.gz
podman-babc64b44b341470f4f23569502f8e661b6561ec.tar.bz2
podman-babc64b44b341470f4f23569502f8e661b6561ec.zip
Fix a bug with APIv2 compat network remove to log an ErrNetworkNotFound instead of nil
Signed-off-by: Maximilian Müller <maxm123@techie.com>
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 {