From 05444cb2ccf29515e6cb8f2711c64213b7cb3325 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Thu, 4 Feb 2021 18:30:07 +0100 Subject: Fix per review request Signed-off-by: Matej Vasek --- libpod/define/errors.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod/define/errors.go') 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") ) -- cgit v1.2.3-54-g00ecf