Skip to content

Commit

Permalink
fix error formatting
Browse files Browse the repository at this point in the history
would interpret % as printf formatted strings

Signed-off-by: Steven Chung <[email protected]>
  • Loading branch information
Steven Chung committed Aug 21, 2019
1 parent af4b937 commit ff6c349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
func CheckError(err error) {
if err != nil {
if err != context.Canceled {
fmt.Fprintf(os.Stderr, fmt.Sprintf("An error occurred: %v\n", err))
fmt.Fprintf(os.Stderr, "An error occurred: %q\n", err)
}
os.Exit(1)
}
Expand Down

0 comments on commit ff6c349

Please sign in to comment.