mirror of
https://github.com/containers/podman.git
synced 2025-10-20 20:54:45 +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
|
return
|
||||||
}
|
}
|
||||||
if !exists {
|
if !exists {
|
||||||
utils.Error(w, "network not found", http.StatusNotFound, err)
|
utils.Error(w, "network not found", http.StatusNotFound, network.ErrNetworkNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err := network.RemoveNetwork(config, name); err != nil {
|
if err := network.RemoveNetwork(config, name); err != nil {
|
||||||
|
Reference in New Issue
Block a user