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

Commit ee45e5f

Browse files
committed
simplify
1 parent 63529dc commit ee45e5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +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;
30-
this.emit('error', new gutil.PluginError('gulp-rework', err));
29+
this.emit('error', new gutil.PluginError('gulp-rework', err, {fileName: file.path}));
3130
}
3231

3332
this.push(file);

0 commit comments

Comments
 (0)