File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ angular.module('exceptionless', [])
7
7
$ExceptionlessClient . submitNotFound ( rejection . config . url ) ;
8
8
}
9
9
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 } )
11
13
. setSource ( rejection . config . url )
12
14
. setProperty ( 'request' , rejection . config )
13
15
. submit ( ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ angular.module('exceptionless', [])
10
10
if ( rejection . status === 404 ) {
11
11
$ExceptionlessClient . submitNotFound ( rejection . config . url ) ;
12
12
} else if ( rejection . status !== 401 ) {
13
- $ExceptionlessClient . createUnhandledException ( new Error ( `[${ rejection . status } ] ${ rejection . config . url } ` ) , 'errorHttpInterceptor' )
13
+ let message = `[${ rejection . status } ] ${ ( rejection . data && rejection . data . Message ? rejection . data . Message : rejection . config . url ) } ` ;
14
+ $ExceptionlessClient . createUnhandledException ( new Error ( message ) , 'errorHttpInterceptor' )
15
+ . setManualStackingInfo ( { Status : rejection . status , ExceptionType : 'Error' , Path : rejection . config . method + ' ' + rejection . config . url } )
14
16
. setSource ( rejection . config . url )
15
17
. setProperty ( 'request' , rejection . config )
16
18
. submit ( ) ;
You can’t perform that action at this time.
0 commit comments