Skip to content

Commit

Permalink
fix(core/webidl-contiguous): improve parser error message (closes #1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Feb 20, 2017
1 parent c758694 commit 32ebc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core/webidl-contiguous.js
Expand Up @@ -980,7 +980,7 @@ define(
try {
parse = webidl2.parse($(this).text(), { ws: true });
} catch (e) {
pubsubhub.pub("error", "Failed to parse <pre>" + $idl.text() + "</pre> as IDL: " + (e.stack || e));
pubsubhub.pub("error", "Failed to parse WebIDL: \n```\n" + this.textContent + "\n```\n" + (e.message || e)) + ".";
// Skip this <pre> and move on to the next one.
return;
}
Expand Down

0 comments on commit 32ebc07

Please sign in to comment.