Quote proposals in error message

This commit is contained in:
James DiGioia
2018-07-12 23:07:09 -04:00
parent 7188820151
commit cc526940ee
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ export function validatePlugins(plugins: PluginList) {
) {
throw new Error(
"'pipelineOperator' requires 'proposal' option whose value should be one of: " +
PIPELINE_PROPOSALS.join(", "),
PIPELINE_PROPOSALS.map(p => `'${p}'`).join(", "),
);
}
}

View File

@@ -2,5 +2,5 @@
"plugins": [
["pipelineOperator", { "proposal": "invalid" }]
],
"throws": "'pipelineOperator' requires 'proposal' option whose value should be one of: minimal, smart"
"throws": "'pipelineOperator' requires 'proposal' option whose value should be one of: 'minimal', 'smart'"
}