mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
Merge pull request #20365 from p-fruck/fix/api-compat-network-connected
fix(API): Catch ErrNetworkConnected for compat
This commit is contained in:
@ -448,6 +448,10 @@ func Connect(w http.ResponseWriter, r *http.Request) {
|
||||
utils.Error(w, http.StatusNotFound, err)
|
||||
return
|
||||
}
|
||||
if errors.Is(err, define.ErrNetworkConnected) {
|
||||
utils.Error(w, http.StatusForbidden, err)
|
||||
return
|
||||
}
|
||||
utils.Error(w, http.StatusInternalServerError, err)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user