diff --git a/command/push.go b/command/push.go index 91875e513..e935ff83e 100644 --- a/command/push.go +++ b/command/push.go @@ -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 {