release: Make error format string consistent

Use `%s` for both semver parameters.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2020-11-12 10:04:00 +00:00
parent 671a2be313
commit 4024a8274b

View File

@ -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