Skip to content

Commit d638903

Browse files
committed
Merge pull request reworkcss#59 from andreypopp/master
Report filename if available in case of errors
2 parents 4368352 + 79229db commit d638903

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module.exports = function(css, options){
5555

5656
function error(msg) {
5757
var err = new Error(msg + ' near line ' + lineno + ':' + column);
58+
err.filename = options.source;
5859
err.line = lineno;
5960
err.column = column;
6061
err.source = css;

0 commit comments

Comments
 (0)