Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

Commit 1f4baea

Browse files
committed
Merge pull request #9 from jeromedecoster/filename
error return fileName
2 parents f69f7e2 + 0e20522 commit 1f4baea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = function () {
2626
plugins.forEach(ret.use.bind(ret));
2727
file.contents = new Buffer(ret.toString(options));
2828
} catch (err) {
29+
err.fileName = file.path;
2930
this.emit('error', new gutil.PluginError('gulp-rework', err));
3031
}
3132

0 commit comments

Comments
 (0)