mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Keep old "notfound" interface for backward compatibility
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2a9c987e5a
commit
053c6f097a
1 changed files with 2 additions and 1 deletions
|
@ -33,9 +33,10 @@ func ErrorConnectionFailed(host string) error {
|
|||
return errConnectionFailed{host: host}
|
||||
}
|
||||
|
||||
// Deprecated: use the errdefs.NotFound() interface instead. Kept for backward compatibility
|
||||
type notFound interface {
|
||||
error
|
||||
NotFound()
|
||||
NotFound() bool
|
||||
}
|
||||
|
||||
// IsErrNotFound returns true if the error is a NotFound error, which is returned
|
||||
|
|
Loading…
Add table
Reference in a new issue