From the security's prospective, error messages displayed to the user should be as less informative as possible. Remember Google's error message "Something went wrong"?

Of course, the core team can add a feature in the core that when an error happens, an email with detail error message will be sent to the administrator if they opt in to receive this type of error messages, but for the front-end, don't display informative error messages.