We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a36d0 commit 7d4dfecCopy full SHA for 7d4dfec
1 file changed
src/integrations/angular.ts
@@ -10,7 +10,9 @@ angular.module('exceptionless', [])
10
if (rejection.status === 404) {
11
$ExceptionlessClient.submitNotFound(rejection.config.url);
12
} else if (rejection.status !== 401) {
13
- $ExceptionlessClient.createUnhandledException(new Error(`[${rejection.status}] ${rejection.config.url}`), 'errorHttpInterceptor')
+ 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 })
16
.setSource(rejection.config.url)
17
.setProperty('request', rejection.config)
18
.submit();
0 commit comments