Skip to content

Commit

Permalink
directly pass error to data
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 7, 2023
1 parent 1cdf53c commit 71b1634
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/internal/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ function createValidationError(validateError?: any) {
status: 400,
statusMessage: "Validation Error",
message: validateError.message || "Validation Error",
data: {
...validateError,
},
data: validateError,
});
}

0 comments on commit 71b1634

Please sign in to comment.