Update libcontainer dependency
This commit is contained in:
8
vendor/github.com/opencontainers/runc/libcontainer/error.go
generated
vendored
8
vendor/github.com/opencontainers/runc/libcontainer/error.go
generated
vendored
@@ -2,7 +2,7 @@ package libcontainer
|
||||
|
||||
import "io"
|
||||
|
||||
// API error code type.
|
||||
// ErrorCode is the API error code type.
|
||||
type ErrorCode int
|
||||
|
||||
// API error codes.
|
||||
@@ -19,7 +19,7 @@ const (
|
||||
ContainerNotPaused
|
||||
|
||||
// Process errors
|
||||
ProcessNotExecuted
|
||||
NoProcessOps
|
||||
|
||||
// Common errors
|
||||
ConfigInvalid
|
||||
@@ -49,12 +49,14 @@ func (c ErrorCode) String() string {
|
||||
return "Console exists for process"
|
||||
case ContainerNotPaused:
|
||||
return "Container is not paused"
|
||||
case NoProcessOps:
|
||||
return "No process operations"
|
||||
default:
|
||||
return "Unknown error"
|
||||
}
|
||||
}
|
||||
|
||||
// API Error type.
|
||||
// Error is the API error type.
|
||||
type Error interface {
|
||||
error
|
||||
|
||||
|
Reference in New Issue
Block a user