Skip to content

Commit 7aa7369

Browse files
committed
client: deprecate IsErrNotFound
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent fd1a78e commit 7aa7369

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

client/errors.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"errors"
66
"fmt"
77

8+
cerrdefs "github.com/containerd/errdefs"
89
"github.com/docker/docker/api/types/versions"
9-
"github.com/docker/docker/errdefs"
1010
)
1111

1212
// errConnectionFailed implements an error returned when connection failed.
@@ -48,9 +48,11 @@ func connectionFailed(host string) error {
4848
}
4949

5050
// IsErrNotFound returns true if the error is a NotFound error, which is returned
51-
// by the API when some object is not found. It is an alias for [errdefs.IsNotFound].
51+
// by the API when some object is not found. It is an alias for [cerrdefs.IsNotFound].
52+
//
53+
// Deprecated: use [cerrdefs.IsNotFound] instead.
5254
func IsErrNotFound(err error) bool {
53-
return errdefs.IsNotFound(err)
55+
return cerrdefs.IsNotFound(err)
5456
}
5557

5658
type objectNotFoundError struct {

0 commit comments

Comments
 (0)