aboutsummaryrefslogtreecommitdiff
path: root/errors/missing.go
blob: 3ca27583c2705d81db27959917a91b94ea3305b0 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package errors

import (
	"fmt"

	"codeberg.org/lindenii/furgit/objectid"
)

// ObjectMissingError indicates that a referenced object is absent from the
// repository object store.
type ObjectMissingError struct {
	OID objectid.ObjectID
}

// Error implements error.
func (e *ObjectMissingError) Error() string {
	return fmt.Sprintf("missing object %s", e.OID)
}