Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- myApp.factory('$exceptionHandler', ['$injector', function ($injector) {
- function log(exception, cause) {
- Airbrake.push({
- error : {
- message : exception.toString(),
- stack : exception.stack
- },
- params : {
- user : $user,
- history : $history
- }
- });
- }
- return( log );
- }]
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement