aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-12-11 12:02:17 +0100
committerGitHub <noreply@github.com>2021-12-11 12:02:17 +0100
commitf0b111ab70e4e90013658b0835929b2083902017 (patch)
tree04acaf3ded2a73541c213e10442602e346039bd0 /plumbing/object
parente60e348f614a7272e4a51bdee8ba20f059ca4cce (diff)
parent4ccea5bb8d8c12cb31dba22f36864ffb91529559 (diff)
downloadgo-git-f0b111ab70e4e90013658b0835929b2083902017.tar.gz
Merge pull request #425 from abhinav/error-strings
error strings: Don't capitalize, use periods, or newlines
Diffstat (limited to 'plumbing/object')
-rw-r--r--plumbing/object/change_adaptor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/object/change_adaptor.go b/plumbing/object/change_adaptor.go
index f701188..b96ee84 100644
--- a/plumbing/object/change_adaptor.go
+++ b/plumbing/object/change_adaptor.go
@@ -16,11 +16,11 @@ func newChange(c merkletrie.Change) (*Change, error) {
var err error
if ret.From, err = newChangeEntry(c.From); err != nil {
- return nil, fmt.Errorf("From field: %s", err)
+ return nil, fmt.Errorf("from field: %s", err)
}
if ret.To, err = newChangeEntry(c.To); err != nil {
- return nil, fmt.Errorf("To field: %s", err)
+ return nil, fmt.Errorf("to field: %s", err)
}
return ret, nil