diff options
Diffstat (limited to 'cmd_incommit.go')
-rw-r--r-- | cmd_incommit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd_incommit.go b/cmd_incommit.go index f58e59f..c8ae15f 100644 --- a/cmd_incommit.go +++ b/cmd_incommit.go @@ -51,7 +51,7 @@ func (FileModify) fiCmdRead(fir fiReader) (cmd Cmd, err error) { str := trimLinePrefix(line, "M ") fields := strings.SplitN(str, " ", 3) if len(fields) != 3 { - return nil, errors.Errorf("commit: malformed modify command: %v", line) + return nil, errors.Errorf("commit: malformed modify command: %q", line) } nMode, err := strconv.ParseUint(fields[0], 8, 18) @@ -217,7 +217,7 @@ func (NoteModify) fiCmdRead(fir fiReader) (cmd Cmd, err error) { str := trimLinePrefix(line, "N ") sp := strings.IndexByte(str, ' ') if sp < 0 { - return nil, errors.Errorf("commit: malformed notemodify command: %v", line) + return nil, errors.Errorf("commit: malformed notemodify command: %q", line) } ref := str[:sp] |