diff options
author | Maximilian Müller <maxm123@techie.com> | 2020-06-26 13:54:34 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-07-06 14:16:39 -0400 |
commit | 1444be3d53dfa677332fe7731fc7e0058741394e (patch) | |
tree | f516871cdaca24b309c97f723959d323d4959242 /pkg/api | |
parent | 8dd26289bf516dcfbd9aaad6d2dd65c9f84380c8 (diff) | |
download | podman-1444be3d53dfa677332fe7731fc7e0058741394e.tar.gz podman-1444be3d53dfa677332fe7731fc7e0058741394e.tar.bz2 podman-1444be3d53dfa677332fe7731fc7e0058741394e.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/api')
-rw-r--r-- | pkg/api/handlers/compat/networks.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/networks.go b/pkg/api/handlers/compat/networks.go index fe7d8888e..2e11c0edb 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 { |