shithub: furgit

ref: c3731c4eff12cc9e6636f89128948d86596ad860
dir: /errors/missing.go/

View raw version
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)
}