You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you recommend determining the error from Fauna in TS? It would be nice if we could have an error result and switch on type, but it doesn't look like the right properties are exported.
export function getFaunaError(error: typeof FaunaHTTPError) {
const { code, description } = error.requestResult.responseContent.errors[0]; // Property 'requestResult' does not exist on type 'typeof FaunaHTTPError'.
...
}
The text was updated successfully, but these errors were encountered:
How do you recommend determining the error from Fauna in TS? It would be nice if we could have an error result and switch on type, but it doesn't look like the right properties are exported.
The text was updated successfully, but these errors were encountered: