-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
javascriptPull requests that update javascript codePull requests that update javascript code
Description
Right know, error handling is done manually by users, like so:
function handleError(err: unknown) {
const eventId = Sentry.captureException(error);
return [
"**Error**",
"There was an problem with your request.",
"Please report the following to the user:",
`**Event ID**: ${eventId}`,
process.env.NODE_ENV !== "production"
? error instanceof Error
? error.message
: String(error)
: "",
].join("\n\n");
}
Metadata
Metadata
Assignees
Labels
javascriptPull requests that update javascript codePull requests that update javascript code