Fixing ValidateTagName error message

Signed-off-by: Don Kjer <don.kjer@gmail.com>
Upstream-commit: b74ccf2a1b9d146fef0bca89a2f6a40eb4c3e486
Component: engine
This commit is contained in:
Don Kjer
2014-12-19 22:48:31 +00:00
parent a2d81fbbe1
commit 57eaf85313
+1 -1
View File
@@ -310,7 +310,7 @@ func ValidateTagName(name string) error {
return fmt.Errorf("Tag name can't be empty")
}
if !validTagName.MatchString(name) {
return fmt.Errorf("Illegal tag name (%s): only [A-Za-z0-9_.-] are allowed, minimum 2, maximum 30 in length", name)
return fmt.Errorf("Illegal tag name (%s): only [A-Za-z0-9_.-] are allowed, minimum 1, maximum 128 in length", name)
}
return nil
}