summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2020-08-02 21:08:13 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2020-08-02 22:21:28 +0800
commit45b100d21ce1ca1843e26366466d09eac2d4add0 (patch)
treea4fbcccc680ba028deacedb9039e8f1de07e5316 /libpod
parentf4d4bd22887e1271c3bf04532596f4c02201022e (diff)
downloadpodman-45b100d21ce1ca1843e26366466d09eac2d4add0.tar.gz
podman-45b100d21ce1ca1843e26366466d09eac2d4add0.tar.bz2
podman-45b100d21ce1ca1843e26366466d09eac2d4add0.zip
API returns 500 in case network is not found instead of 404
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/define/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go
index 4a0df3983..6e372eb5e 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -20,6 +20,9 @@ var (
// ErrNoSuchVolume indicates the requested volume does not exist
ErrNoSuchVolume = errors.New("no such volume")
+ // ErrNoSuchNetwork indicates the requested network does not exist
+ ErrNoSuchNetwork = errors.New("network not found")
+
// ErrNoSuchExecSession indicates that the requested exec session does
// not exist.
ErrNoSuchExecSession = errors.New("no such exec session")