diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-05-19 16:44:59 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-05-19 16:44:59 +0200 |
commit | 25077df01588b54ec097ce3f99db6672c5a59463 (patch) | |
tree | 49f7b64f4164d19260ba848c5faca366b75438d1 /formats/packfile | |
parent | 08f9e7015aad2ca768638b446fb8632f11601899 (diff) | |
download | go-git-25077df01588b54ec097ce3f99db6672c5a59463.tar.gz |
documentation
Diffstat (limited to 'formats/packfile')
-rw-r--r-- | formats/packfile/reader.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/formats/packfile/reader.go b/formats/packfile/reader.go index a013776..3f7081b 100644 --- a/formats/packfile/reader.go +++ b/formats/packfile/reader.go @@ -22,7 +22,7 @@ var ( InvalidObjectErr = newError("invalid git object") PatchingErr = newError("patching error") PackEntryNotFoundErr = newError("can't find a pack entry") - ObjectNotFoundErr = newError("can't find a object") + ErrObjectNotFound = newError("can't find a object") ZLibErr = newError("zlib reading error") ) @@ -200,8 +200,8 @@ func (r *Reader) readREFDelta(raw core.Object) (err error) { referenced, err := r.s.Get(ref) if err != nil { - if err == core.ObjectNotFoundErr { - return ObjectNotFoundErr.n("%s", ref) + if err == core.ErrObjectNotFound { + return ErrObjectNotFound.n("%s", ref) } return err } |