aboutsummaryrefslogtreecommitdiff
path: root/errors/missing.go
blob: 18ea43cde3748ef62c6d46ef1ecec4fb6c924c9d (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 "lindenii.org/go/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)
}