Make the build name error message show the original regexp

This commit is contained in:
Chris Bednarski 2016-03-01 18:27:40 -08:00
parent 17e5076f06
commit 6a38303030
1 changed files with 1 additions and 1 deletions

View File

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