Skip to content

Commit db1ddb7

Browse files
committed
Merge pull request #83 from picnichealth/master
Fix bug where browserify didn't emit error
2 parents 95727b4 + 30cc430 commit db1ddb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ module.exports = function (browserify, options) {
190190
return callback();
191191
}).catch(function (err) {
192192
self.push('console.error("' + err + '");');
193-
browserify.emit('error', err);
193+
self.emit('error', err);
194194
return callback();
195195
});
196196
};

0 commit comments

Comments
 (0)