Skip to content

Commit

Permalink
chore(errors): change unknown error message for better visibility in …
Browse files Browse the repository at this point in the history
…Sentry

GitOrigin-RevId: bede81b9b5868e18826cbd1423b10bb36253ae30
  • Loading branch information
IcaroG authored and actions-user committed Oct 22, 2024
1 parent 63843d4 commit eb1e687
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platform/wab/src/wab/client/ErrorNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}`
);
}

0 comments on commit eb1e687

Please sign in to comment.