daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Oct 3rd, 2014 331 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2. myApp.factory('$exceptionHandler', ['$injector', function ($injector) {
  3.                 function log(exception, cause) {
  4.                         Airbrake.push({
  5.                                 error : {
  6.                                         message : exception.toString(),
  7.                                         stack : exception.stack
  8.                                 },
  9.                                 params : {
  10.                                         user : $user,
  11.                                         history : $history
  12.                                 }
  13.                         });
  14.                 }
  15.                 return( log );
  16.         }]
  17. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top