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 12ac49a commit 2685465Copy full SHA for 2685465
packages/angular/src/errorhandler.ts
@@ -48,8 +48,8 @@ function extractHttpModuleError(error: HttpErrorResponse): string | Error {
48
return `Server returned code ${error.status} with body "${error.error}"`;
49
}
50
51
- // If we don't have any detailed information, fallback to the request message itself.
52
- return error.message;
+ // If we don't have any detailed information, fallback to the request itself.
+ return error;
53
54
55
type ErrorCandidate = {
0 commit comments