Merge pull request #1964 from lyrixx/better-errror
Better error reporting when a config key in template is Unknown
This commit is contained in:
commit
fc6b78b8dd
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue