Quote proposals in error message
This commit is contained in:
@@ -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(", "),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user