Skip to content

Commit 2685465

Browse files
committed
fix(angular): If no other information is provided, fallback the request itself.
1 parent 12ac49a commit 2685465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/src/errorhandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function extractHttpModuleError(error: HttpErrorResponse): string | Error {
4848
return `Server returned code ${error.status} with body "${error.error}"`;
4949
}
5050

51-
// If we don't have any detailed information, fallback to the request message itself.
52-
return error.message;
51+
// If we don't have any detailed information, fallback to the request itself.
52+
return error;
5353
}
5454

5555
type ErrorCandidate = {

0 commit comments

Comments
 (0)