I do agree with you on this point though. Hide this type of information behind a user-friendly error page.