From 2685465d0cef1cd3948056effff429ee04da64de Mon Sep 17 00:00:00 2001 From: iaosee Date: Fri, 1 Aug 2025 16:34:12 +0800 Subject: [PATCH] fix(angular): If no other information is provided, fallback the request itself. --- packages/angular/src/errorhandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular/src/errorhandler.ts b/packages/angular/src/errorhandler.ts index 31f945b08731..96779f6b17a9 100644 --- a/packages/angular/src/errorhandler.ts +++ b/packages/angular/src/errorhandler.ts @@ -48,8 +48,8 @@ function extractHttpModuleError(error: HttpErrorResponse): string | Error { return `Server returned code ${error.status} with body "${error.error}"`; } - // If we don't have any detailed information, fallback to the request message itself. - return error.message; + // If we don't have any detailed information, fallback to the request itself. + return error; } type ErrorCandidate = {