diff options
Diffstat (limited to 'object/store/writer.go')
| -rw-r--r-- | object/store/writer.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/object/store/writer.go b/object/store/writer.go index 289e6df4..e7efaab4 100644 --- a/object/store/writer.go +++ b/object/store/writer.go @@ -1,6 +1,7 @@ package store import ( + "errors" "io" "lindenii.org/go/furgit/common/iowrap" @@ -8,6 +9,9 @@ import ( "lindenii.org/go/furgit/object/typ" ) +// ErrInvalidObject indicates a malformed object passed to a write. +var ErrInvalidObject = errors.New("object/store: invalid object") + // ObjectWriter writes individual Git objects. type ObjectWriter interface { // WriteBytesFull writes one full serialized object byte slice as "type size\x00content". |
