diff options
author | Matej Vasek <mvasek@redhat.com> | 2021-02-04 18:30:07 +0100 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-02-08 14:29:46 -0500 |
commit | f645880ecdb90c44727b5f2aea50ae74257f7c5d (patch) | |
tree | c6c3b24edd135381bc6670e9214c7e8cb8b9b073 /libpod/define | |
parent | 2df59dece58a794c58fa4ad15f3f9b13a4b7aa42 (diff) | |
download | podman-f645880ecdb90c44727b5f2aea50ae74257f7c5d.tar.gz podman-f645880ecdb90c44727b5f2aea50ae74257f7c5d.tar.bz2 podman-f645880ecdb90c44727b5f2aea50ae74257f7c5d.zip |
Fix per review request
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'libpod/define')
-rw-r--r-- | libpod/define/errors.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go index d37bc397e..2e85454b2 100644 --- a/libpod/define/errors.go +++ b/libpod/define/errors.go @@ -198,4 +198,8 @@ var ( // ErrSecurityAttribute indicates that an error processing security attributes // for the container ErrSecurityAttribute = fmt.Errorf("%w: unable to process security attribute", ErrOCIRuntime) + + // ErrCanceled indicates that an operation has been cancelled by a user. + // Useful for potentially long running tasks. + ErrCanceled = errors.New("cancelled by user") ) |