mirror of
https://github.com/containers/podman.git
synced 2025-10-18 19:53:58 +08:00
Merge pull request #6763 from maxm123/master
Fix error handling problem in APIv2 network remove
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user