Hide option for error in the production so the user wont see internal error.

Hi, is there an option in the production or etc to hide internal errors so the users can't see? or there are no other option but to catch the error? 

TYIA



  Discussion posts and replies are publicly visible