Skip to content

Commit

Permalink
fix: removed stringified error
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed May 3, 2023
1 parent 6115ddf commit 64b892e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function createBadRequest(error: any) {
return createError({
statusCode: DEFAULT_ERROR_STATUS,
statusText: DEFAULT_ERROR_MESSAGE,
data: JSON.stringify(error),
data: error,
})
}

Expand Down

0 comments on commit 64b892e

Please sign in to comment.