Make the build name error message show the original regexp
This commit is contained in:
parent
17e5076f06
commit
6a38303030
|
@ -19,7 +19,7 @@ const archiveTemplateEntry = ".packer-template"
|
|||
|
||||
var (
|
||||
reName = regexp.MustCompile("^[a-zA-Z0-9-_/]+$")
|
||||
errInvalidName = fmt.Errorf("Your build name can only contain these characters: [a-zA-Z0-9-_]+")
|
||||
errInvalidName = fmt.Errorf("Your build name can only contain these characters: %s", reName.String())
|
||||
)
|
||||
|
||||
type PushCommand struct {
|
||||
|
|
Loading…
Reference in New Issue