Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 16, 2014
1 parent 5cee824 commit e96e7a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ module.exports = function (opts) {
applySourceMap(file, res.map.toString());
}

cb(null, file);
this.push(file);
} catch (err) {
cb(new gutil.PluginError('gulp-autoprefixer', err, {fileName: file.path}));
this.emit('error', new gutil.PluginError('gulp-autoprefixer', err, {fileName: file.path}));
}

cb();
});
};

0 comments on commit e96e7a2

Please # to comment.