Browse Source

Merge pull request #293 from jamestalmage/fix-formatting-for-uncaught-errors

Fix regression in uncaughtException formatting.
babel-plugin-for-integration-tests
Sindre Sorhus 9 years ago
parent
commit
6b6247ebe3
  1. 4
      api.js

4
api.js

@ -74,9 +74,11 @@ Api.prototype._handleRejections = function (data) {
}, this);
};
Api.prototype._handleExceptions = function (err) {
Api.prototype._handleExceptions = function (data) {
this.exceptionCount++;
var err = data.exception;
err.type = 'exception';
err.file = data.file;
this.emit('error', err);
this.errors.push(err);
};

Loading…
Cancel
Save