Skip to content

Commit

Permalink
fix(backend): Parse api errors that don't throw exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikpolik committed Dec 20, 2023
1 parent 62936cd commit 2c323e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/api/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function buildRequest(options: BuildRequestOptions) {
if (!res.ok) {
return {
data: null,
errors: responseBody?.errors || responseBody,
errors: parseErrors(responseBody),
status: res?.status,
statusText: res?.statusText,
clerkTraceId: getTraceId(responseBody, res?.headers),
Expand Down

0 comments on commit 2c323e9

Please sign in to comment.