Skip to content

Commit

Permalink
syntax: use %q in some error log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed May 17, 2021
1 parent b084e46 commit 6e4c93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ func confirmParse(in, cmd string, wantErr bool) func(*testing.T) {
err = nil
}
if wantErr && err == nil {
t.Fatalf("Expected error in `%s` of %q, found none", strings.Join(cmd.Args, " "), in)
t.Fatalf("Expected error in %q of %q, found none", strings.Join(cmd.Args, " "), in)
} else if !wantErr && err != nil {
t.Fatalf("Unexpected error in `%s` of %q: %v", strings.Join(cmd.Args, " "), in, err)
t.Fatalf("Unexpected error in %q of %q: %v", strings.Join(cmd.Args, " "), in, err)
}
}
}
Expand Down

0 comments on commit 6e4c93f

Please sign in to comment.