Match not implemented error check to others

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
Upstream-commit: 7406088853b6cbcb8996c367062cee2e1ee6eaaa
Component: engine
This commit is contained in:
Christopher Crone
2017-09-25 13:58:51 +02:00
parent 278bf3cb85
commit e38ecccceb

View File

@ -171,10 +171,10 @@ func (e notImplementedError) NotImplemented() bool {
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
// implemented.
func IsNotImplementedError(err error) bool {
func IsErrNotImplemented(err error) bool {
te, ok := err.(notImplementedError)
return ok && te.NotImplemented()
}