blob: 0630846c9cca4ff43993de1264160f56d744c0f5 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package errs
import (
"fmt"
"lindenii.org/go/furgit/object/id"
)
// ObjectMissingError indicates that
// a referenced object is absent from the repository object store.
//
// This should only be used
// in situations where objects are being queried recursively
// or otherwise by some chain that the caller may not be aware of.
//
// Failures on direct object access
// should instead use [lindenii.org/go/furgit/object/store.ErrObjectNotFound].
type ObjectMissingError struct {
OID id.ObjectID
}
// Error implements error.
func (e *ObjectMissingError) Error() string {
return fmt.Sprintf("missing object %s", e.OID)
}
|