Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 053c6f0

Browse files
committed
Keep old "notfound" interface for backward compatibility
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 2a9c987 commit 053c6f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/errors.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ func ErrorConnectionFailed(host string) error {
3333
return errConnectionFailed{host: host}
3434
}
3535

36+
// Deprecated: use the errdefs.NotFound() interface instead. Kept for backward compatibility
3637
type notFound interface {
3738
error
38-
NotFound()
39+
NotFound() bool
3940
}
4041

4142
// IsErrNotFound returns true if the error is a NotFound error, which is returned

0 commit comments

Comments
 (0)