diff options
| author | 2026-05-20 16:27:38 +0000 | |
|---|---|---|
| committer | 2026-05-20 16:27:38 +0000 | |
| commit | 5d68b08dcd50c65e6e67239ca1ee8b25786d4559 (patch) | |
| tree | 732124b4ab9a1e80bc26541a33aeed8d0e13a406 /ref | |
| parent | ref/store: List should not be backend-defined (diff) | |
| signature | No signature | |
ref/store: More bikeshedding
Diffstat (limited to 'ref')
| -rw-r--r-- | ref/store/errors.go | 1 | ||||
| -rw-r--r-- | ref/store/update_errors.go | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ref/store/errors.go b/ref/store/errors.go index 45583440..3b2b15b3 100644 --- a/ref/store/errors.go +++ b/ref/store/errors.go @@ -4,4 +4,5 @@ import "errors" // ErrReferenceNotFound indicates that a reference does not exist in a backend. // TODO: Interface error? Just like object not found in objectstore. +// I'm not sure if I want this as a sentinel. var ErrReferenceNotFound = errors.New("refstore: reference not found") diff --git a/ref/store/update_errors.go b/ref/store/update_errors.go index f05f37d2..d3580439 100644 --- a/ref/store/update_errors.go +++ b/ref/store/update_errors.go @@ -62,6 +62,9 @@ func (err *CreateExistsError) Error() string { // IncorrectOldValueError indicates that one operation's expected old value did // not match the current reference value. +// +// TODO: All of these errors should be redesigned. +// Strings are not appropriate here. type IncorrectOldValueError struct { Actual string Expected string |
