Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow public errors to thread through on response (#10419)
### What? When using `throw new APIResponse("Custom error message", 500, null, true)` the error message is being replaced with the standard "Something went wrong" message. ### Why? We are not checking if the 4th argument (`isPublic`) is false before masquerading the error message. ### How? Adds a check for `!err.isPublic` before adjusting the outgoing message.
- Loading branch information