mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-18 22:04:22 +01:00
errors: Create a new standard error for invalid config
Refactor a common error into a new standard error object. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -11,9 +11,10 @@ import (
|
||||
|
||||
// common error objects used for argument checking
|
||||
var (
|
||||
ErrNeedSandbox = errors.New("Sandbox must be specified")
|
||||
ErrNeedSandboxID = errors.New("Sandbox ID cannot be empty")
|
||||
ErrNeedContainerID = errors.New("Container ID cannot be empty")
|
||||
ErrNeedState = errors.New("State cannot be empty")
|
||||
ErrNoSuchContainer = errors.New("Container does not exist")
|
||||
ErrNeedSandbox = errors.New("Sandbox must be specified")
|
||||
ErrNeedSandboxID = errors.New("Sandbox ID cannot be empty")
|
||||
ErrNeedContainerID = errors.New("Container ID cannot be empty")
|
||||
ErrNeedState = errors.New("State cannot be empty")
|
||||
ErrNoSuchContainer = errors.New("Container does not exist")
|
||||
ErrInvalidConfigType = errors.New("Invalid config type")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user