diff --git a/platform/wab/src/wab/client/ErrorNotifications.tsx b/platform/wab/src/wab/client/ErrorNotifications.tsx index c17df851664..dda26d600ba 100644 --- a/platform/wab/src/wab/client/ErrorNotifications.tsx +++ b/platform/wab/src/wab/client/ErrorNotifications.tsx @@ -201,5 +201,9 @@ export function normalizeError(error: any) { ? (error.error as Error) : typeof error === "string" ? new Error(error) - : new Error("Unknown error", { cause: error }); + : new Error( + `Unknown error: ${ + typeof error === "object" ? JSON.stringify(error) : error + }` + ); }