Skip to content

Commit

Permalink
Improve unknown card errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Oct 27, 2015
1 parent 4b1179a commit 180172e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const defaults = {
autofocus: true,
cards: [],
cardOptions: {},
unknownCardHandler: () => {
throw new Error('Unknown card encountered');
unknownCardHandler: (element, options, env) => {
throw new Error(`Unknown card encountered: ${env.name}`);
},
mobiledoc: null,
html: null
Expand Down

0 comments on commit 180172e

Please sign in to comment.