Keep old "notfound" interface for backward compatibility

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-02-09 17:48:18 +01:00
parent 2a9c987e5a
commit 053c6f097a
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 1 deletions

View File

@ -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