File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ angular.module('exceptionless', [])
77 $ExceptionlessClient . submitNotFound ( rejection . config . url ) ;
88 }
99 else if ( rejection . status !== 401 ) {
10- $ExceptionlessClient . createUnhandledException ( new Error ( "[" + rejection . status + "] " + rejection . config . url ) , 'errorHttpInterceptor' )
10+ var message = "[" + rejection . status + "] " + ( rejection . data && rejection . data . Message ? rejection . data . Message : rejection . config . url ) ;
11+ $ExceptionlessClient . createUnhandledException ( new Error ( message ) , 'errorHttpInterceptor' )
12+ . setManualStackingInfo ( { Status : rejection . status , ExceptionType : 'Error' , Path : rejection . config . method + ' ' + rejection . config . url } )
1113 . setSource ( rejection . config . url )
1214 . setProperty ( 'request' , rejection . config )
1315 . submit ( ) ;
You can’t perform that action at this time.
0 commit comments