Appearance
destillationapp-frontend v0.1.0
destillationapp-frontend / helpers/errorHandling / handleUserError
Function: handleUserError()
handleUserError(
error
):Promise
<void
>
Defined in: helpers/errorHandling.ts:11
Handles user errors by reporting them to Sentry, logging out the user if unauthorized, redirecting to the login page, or logging the error to the console.
Parameters
error
any
The error object to handle.
Returns
Promise
<void
>
A promise that resolves when the error has been handled.