summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-03 09:13:40 -0400
committerGitHub <noreply@github.com>2020-08-03 09:13:40 -0400
commit96ece0ca56fca249bcf84061de0e944f3c092ea5 (patch)
treec6f1f28ae3481f6b617f5931da9d91f323de556d /libpod
parentde5eb3831190262169eab36e64c41992dc22766a (diff)
parent45b100d21ce1ca1843e26366466d09eac2d4add0 (diff)
downloadpodman-96ece0ca56fca249bcf84061de0e944f3c092ea5.tar.gz
podman-96ece0ca56fca249bcf84061de0e944f3c092ea5.tar.bz2
podman-96ece0ca56fca249bcf84061de0e944f3c092ea5.zip
Merge pull request #7188 from zhangguanzhang/network-404
API returns 500 in case network is not found instead of 404
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")