aboutsummaryrefslogtreecommitdiff
path: root/reachability/errors.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/errors.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'reachability/errors.go')
-rw-r--r--reachability/errors.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/reachability/errors.go b/reachability/errors.go
index 7d0d9a18..0f0c6047 100644
--- a/reachability/errors.go
+++ b/reachability/errors.go
@@ -7,24 +7,24 @@ import (
"codeberg.org/lindenii/furgit/objecttype"
)
-// ErrObjectMissing indicates that a referenced object is absent from the store.
-type ErrObjectMissing struct {
+// ObjectMissingError indicates that a referenced object is absent from the store.
+type ObjectMissingError struct {
OID objectid.ObjectID
}
-func (e *ErrObjectMissing) Error() string {
+func (e *ObjectMissingError) Error() string {
return fmt.Sprintf("reachability: missing object %s", e.OID)
}
-// ErrObjectType indicates that a referenced object has a different type than
+// ObjectTypeError indicates that a referenced object has a different type than
// what traversal expected on that edge.
-type ErrObjectType struct {
+type ObjectTypeError struct {
OID objectid.ObjectID
Got objecttype.Type
Want objecttype.Type
}
-func (e *ErrObjectType) Error() string {
+func (e *ObjectTypeError) Error() string {
gotName, gotOK := objecttype.Name(e.Got)
if !gotOK {
gotName = fmt.Sprintf("type(%d)", e.Got)