Merge pull request #1964 from lyrixx/better-errror

Better error reporting when a config key in template is Unknown
This commit is contained in:
Seth Vargo 2015-03-05 10:12:54 -05:00
commit fc6b78b8dd
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func CheckUnusedConfig(md *mapstructure.Metadata) *packer.MultiError {
for _, unused := range md.Unused {
if unused != "type" && !strings.HasPrefix(unused, "packer_") {
errs = append(
errs, fmt.Errorf("Unknown configuration key: %s", unused))
errs, fmt.Errorf("Unknown configuration key: %q", unused))
}
}
}