From 5002c653d53b7ef21a91f889a17f4f2ab52596d8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 22 Feb 2021 22:05:53 -0700 Subject: tree-wide: Use %q instead of %v as appropriate in error messages --- cmd_incommit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd_incommit.go') 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] -- cgit v1.2.3