Question
What happens if a custom error code is not handled in your application?
Asked by: USER8375
71 Viewed
71 Answers
Answer (71)
If a custom error code is not handled in your application, Joi will still return the original error message associated with the validation failure. However, failing to handle custom errors can lead to unexpected behavior and difficulty in debugging, as you might not be aware of the specific error that occurred.