Skip to content

Commit

Permalink
Merge pull request sass#191 from MethodGrab/patch-1
Browse files Browse the repository at this point in the history
Add lineNumber & fileName to emitted error
  • Loading branch information
dlmanning committed Feb 10, 2015
2 parents f02d067 + 1a1c1b4 commit d44066d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ module.exports = function (options) {
opts.onError(err);
return cb();
}

err.lineNumber = err.line;
err.fileName = err.file;

return cb(new gutil.PluginError('gulp-sass', err));
};
Expand Down

0 comments on commit d44066d

Please sign in to comment.