Skip to content

Commit

Permalink
drive-by fix to error string generation
Browse files Browse the repository at this point in the history
We're using a formatting string, but not the `f` variant of `Sprint`.
  • Loading branch information
jacobstr committed May 29, 2020
1 parent 519d58a commit 6b5539e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func Load(fileName string) (*Config, error) {
if fileName != DefaultDockerJSON {
errStr := "Invalid auth for Docker registry: %s\nBase64-encoded string is wrong: %s (%s)\n"
return nil, errors.New(
fmt.Sprint(
fmt.Sprintf(
errStr,
registry,
a.B64Auth,
Expand Down

0 comments on commit 6b5539e

Please sign in to comment.