packer: skip the user var if there was an error

This commit is contained in:
Mitchell Hashimoto 2013-09-24 23:01:16 +02:00
parent f0d0621855
commit 6face65ecc
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
if err != nil { if err != nil {
errors = append(errors, errors = append(errors,
fmt.Errorf("Error decoding default value for user var '%s': %s", k, err)) fmt.Errorf("Error decoding default value for user var '%s': %s", k, err))
continue
} }
t.Variables[k] = variable t.Variables[k] = variable