Skip to content

Commit db44094

Browse files
committed
chore(ember-cli): Improve options error reporting.
1 parent 7f32d72 commit db44094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@css-blocks/ember-cli/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ module.exports = {
227227

228228

229229
if (options.output !== undefined && typeof options.output !== "string") {
230-
throw new Error("Invalid css-block options in `ember-cli-build.js`: Output must be a string or array.");
230+
throw new Error(`Invalid css-block options in 'ember-cli-build.js': Output must be a string or array. Instead received ${options.output}.`);
231231
}
232232
if (!isEmber && typeof options.entry !== "string" && !Array.isArray(options.entry)) {
233-
throw new Error("Invalid css-block options in `ember-cli-build.js`: Entry must be a string or array.");
233+
throw new Error(`Invalid css-block options in 'ember-cli-build.js': Entry must be a string or array. Instead received ${options.entry}.`);
234234
}
235235
if (isEmber && options.entry) {
236236
throw new Error(`CSS Blocks entry points are auto-discovered in Ember apps. Do not pass an "entry" option in your CSS Blocks config.`);

0 commit comments

Comments
 (0)