зеркало из https://github.com/docker/engine-api.git
Add nodeNotFound NotFound()
Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
This commit is contained in:
Родитель
f3ed0875cb
Коммит
2b70337c77
|
@ -131,6 +131,11 @@ func (e nodeNotFoundError) Error() string {
|
|||
return fmt.Sprintf("Error: No such node: %s", e.nodeID)
|
||||
}
|
||||
|
||||
// NoFound indicates that this error type is of NotFound
|
||||
func (e nodeNotFoundError) NotFound() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsErrNodeNotFound returns true if the error is caused
|
||||
// when a node is not found.
|
||||
func IsErrNodeNotFound(err error) bool {
|
||||
|
|
Загрузка…
Ссылка в новой задаче