mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
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:
parent
671a2be313
commit
4024a8274b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user