aboutsummaryrefslogtreecommitdiff
path: root/reachability/helpers.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /reachability/helpers.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'reachability/helpers.go')
-rw-r--r--reachability/helpers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/reachability/helpers.go b/reachability/helpers.go
index 41a2f80b..9fdc99d8 100644
--- a/reachability/helpers.go
+++ b/reachability/helpers.go
@@ -39,7 +39,7 @@ func (r *Reachability) readHeaderType(id objectid.ObjectID) (objecttype.Type, er
ty, _, err := r.store.ReadHeader(id)
if err != nil {
if errors.Is(err, objectstore.ErrObjectNotFound) {
- return objecttype.TypeInvalid, &ErrObjectMissing{OID: id}
+ return objecttype.TypeInvalid, &ObjectMissingError{OID: id}
}
return objecttype.TypeInvalid, err
@@ -61,7 +61,7 @@ func (r *Reachability) readBytesContent(id objectid.ObjectID) ([]byte, error) {
_, content, err := r.store.ReadBytesContent(id)
if err != nil {
if errors.Is(err, objectstore.ErrObjectNotFound) {
- return nil, &ErrObjectMissing{OID: id}
+ return nil, &ObjectMissingError{OID: id}
}
return nil, err