зеркало из https://github.com/docker/engine-api.git
Merge pull request #285 from icecrime/node_not_found
Add nodeNotFound NotFound()
This commit is contained in:
Коммит
f90ecdb1e9
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче