Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
release: Make error format string consistent
Browse files Browse the repository at this point in the history
Use `%s` for both semver parameters.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Nov 12, 2020
1 parent 36d541c commit df99deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func getNewReleaseType(current semver.Version, latest semver.Version) (string, e
} else if latest.Patch == current.Patch && len(latest.Pre) > 0 {
desc = "pre-release"
} else {
return "", fmt.Errorf("BUG: unhandled scenario: current version: %s, latest version: %v", current, latest)
return "", fmt.Errorf("BUG: unhandled scenario: current version: %s, latest version: %s", current, latest)
}

return desc, nil
Expand Down

0 comments on commit df99deb

Please sign in to comment.