Skip to content

Commit

Permalink
Fix error messages from the native compiler
Browse files Browse the repository at this point in the history
Before:

    $ brunch b
    28 Oct 12:02:21 - error: Compiling of app/test.scss failed.
    28 Oct 12:02:21 - info: compiled in 493 ms

After:

    $ brunch b
    28 Oct 12:03:02 - error: Compiling of app/test.scss failed. Invalid CSS after "a": expected "{", was ""
    28 Oct 12:03:02 - info: compiled in 464 ms
  • Loading branch information
lydell committed Oct 28, 2016
1 parent 0c9625e commit 8884aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class SassCompiler {
},
(error, result) => {
if (error) {
reject(error.message || util.inspect(error));
reject(error);
} else {
const css = result.css.toString().replace('/*# sourceMappingURL=a.css.map */', '');
const map = JSON.parse(result.map.toString());
Expand Down

0 comments on commit 8884aaa

Please sign in to comment.