Merge pull request #1781 from mesosphere/fix_url

fix error formatting
This commit is contained in:
Steve Kriss
2019-08-22 09:32:14 -06:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1 @@
fix error formatting due interpreting % as printf formatted strings

View File

@@ -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: %v\n", err)
}
os.Exit(1)
}