Skip to content

Commit

Permalink
chore(ember-cli): Improve options error reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
amiller-gh committed Sep 11, 2018
1 parent 16203f4 commit 3babbac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@css-blocks/ember-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ module.exports = {


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

0 comments on commit 3babbac

Please sign in to comment.