mirror of
https://github.com/containers/podman
synced 2024-10-21 09:45:32 +00:00
Merge pull request #6763 from maxm123/master
Fix error handling problem in APIv2 network remove
This commit is contained in:
commit
cbae41f75f
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue