mirror of
https://github.com/Graylog2/graylog-project-cli.git
synced 2026-03-13 08:02:57 +08:00
Fix error message
This commit is contained in:
@@ -25,7 +25,7 @@ func Release(project p.Project, versionPattern *regexp.Regexp) error {
|
||||
|
||||
func ReleaseInPath(path string, version string, versionPattern *regexp.Regexp) error {
|
||||
if !versionPattern.MatchString(version) {
|
||||
return fmt.Errorf("invalid release version: %s (pattern: %s)", version, SemverVersionPattern)
|
||||
return fmt.Errorf("invalid release version: %s (pattern: %s)", version, versionPattern)
|
||||
}
|
||||
|
||||
return utils.InDirectoryE(path, func() error {
|
||||
|
||||
Reference in New Issue
Block a user