mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Match not implemented error check to others
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
This commit is contained in:
parent
c982ee805d
commit
7406088853
1 changed files with 2 additions and 2 deletions
|
@ -171,10 +171,10 @@ func (e notImplementedError) NotImplemented() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsNotImplementedError returns true if the error is a NotImplemented error.
|
// IsErrNotImplemented returns true if the error is a NotImplemented error.
|
||||||
// This is returned by the API when a requested feature has not been
|
// This is returned by the API when a requested feature has not been
|
||||||
// implemented.
|
// implemented.
|
||||||
func IsNotImplementedError(err error) bool {
|
func IsErrNotImplemented(err error) bool {
|
||||||
te, ok := err.(notImplementedError)
|
te, ok := err.(notImplementedError)
|
||||||
return ok && te.NotImplemented()
|
return ok && te.NotImplemented()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue