From 053c6f097a1af7047e831094c0dfa3408a2c9d2b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 9 Feb 2019 17:48:18 +0100 Subject: [PATCH] Keep old "notfound" interface for backward compatibility Signed-off-by: Sebastiaan van Stijn --- client/errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/errors.go b/client/errors.go index 5a079ac422..001c102881 100644 --- a/client/errors.go +++ b/client/errors.go @@ -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