Browse code

Keep old "notfound" interface for backward compatibility

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/02/10 01:48:18
Showing 1 changed files
... ...
@@ -33,9 +33,10 @@ func ErrorConnectionFailed(host string) error {
33 33
 	return errConnectionFailed{host: host}
34 34
 }
35 35
 
36
+// Deprecated: use the errdefs.NotFound() interface instead. Kept for backward compatibility
36 37
 type notFound interface {
37 38
 	error
38
-	NotFound()
39
+	NotFound() bool
39 40
 }
40 41
 
41 42
 // IsErrNotFound returns true if the error is a NotFound error, which is returned