Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8736 from adobe/jasonsanjose/less-toCSS-errors
Browse files Browse the repository at this point in the history
Show LESS errors in console
  • Loading branch information
redmunds committed Oct 13, 2014
2 parents e080eb6 + ac326e6 commit 92e5452
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/ExtensionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ define(function (require, exports, module) {
if (err) {
result.reject(err);
} else {
result.resolve(tree.toCSS());
try {
result.resolve(tree.toCSS());
} catch (toCSSError) {
console.error(toCSSError.filename + ":" + toCSSError.line + " " + toCSSError.message);
result.reject(toCSSError);
}
}
});

Expand Down

0 comments on commit 92e5452

Please sign in to comment.