We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8741ae6 commit 176075dCopy full SHA for 176075d
dist/integrations/angular.js
@@ -7,7 +7,9 @@ angular.module('exceptionless', [])
7
$ExceptionlessClient.submitNotFound(rejection.config.url);
8
}
9
else if (rejection.status !== 401) {
10
- $ExceptionlessClient.createUnhandledException(new Error("[" + rejection.status + "] " + rejection.config.url), 'errorHttpInterceptor')
+ 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 })
13
.setSource(rejection.config.url)
14
.setProperty('request', rejection.config)
15
.submit();
0 commit comments