aboutsummaryrefslogtreecommitdiff
path: root/errors/missing.go
blob: 9efc029ab2e5bf85f192d9d33209754a9310b2cd (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"

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

// 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)
}