aboutsummaryrefslogtreecommitdiff
path: root/object/store/errors.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 09:37:52 +0000
committerGravatar Runxi Yu2026-03-29 09:39:17 +0000
commitfce75106f4be5e8ff08b7c567758645a7516eacc (patch)
tree6ed2645b31005f2e549d4548bed9f42e3d607c62 /object/store/errors.go
parentfurgit: Silly docs rendering (diff)
signatureNo signature
object/store: Refine docs
Diffstat (limited to 'object/store/errors.go')
-rw-r--r--object/store/errors.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/object/store/errors.go b/object/store/errors.go
index 3ee438f7..0e36b400 100644
--- a/object/store/errors.go
+++ b/object/store/errors.go
@@ -3,10 +3,6 @@ package objectstore
import "errors"
// ErrObjectNotFound indicates that an object does not exist in a backend.
-// This error MUST only be used in situations where the object store has
-// no specified object ID, but no other unexpected conditions were
-// encountered. In particular, it is not suitable for situations where one
-// object references another (such as a tree referencing a blob) but
-// the latter does not exist; these situations should use a separate
-// error (TODO).
+// This error must only be produced by object stores, when it has no
+// specified object ID, but no other unexpected conditions were encountered.
var ErrObjectNotFound = errors.New("objectstore: object not found")