Skip to content

Commit

Permalink
Merge pull request adopted-ember-addons#4 from bdvholmes/reporting_en…
Browse files Browse the repository at this point in the history
…hancements

Reporting enhancements
  • Loading branch information
twokul committed Mar 19, 2015
2 parents 136b970 + 3948fec commit cec6ed9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ export default {
Ember.onerror = function (error) {
Bugsnag.context = container.lookup('router:main').get('location').getURL();
Bugsnag.notifyException(error);
console.error(error.stack);
};

Ember.RSVP.on('error', function(error) {
Bugsnag.context = container.lookup('router:main').get('location').getURL();
Bugsnag.notifyException(error);
console.error(error.stack);
});

Ember.Logger.error = function (message, cause, stack) {
Bugsnag.context = container.lookup('router:main').get('location').getURL();
Bugsnag.notifyException(new Error(message), null, { cause: cause, stack: stack });
console.error(stack);
};
}
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"ember-data": "1.0.0-beta.14.1",
"ember-export-application-global": "^1.0.2",
"express": "^4.8.5",
"glob": "^4.0.5"
"glob": "^4.0.5",
"rimraf": "2.2.8"
},
"keywords": [
"ember-addon"
Expand Down

0 comments on commit cec6ed9

Please sign in to comment.