You could do it the Microsoft way: Have a generic friendly message with an error code attached. Then you can go online to look up the specific error code (sometimes there is a handy link in the error), and get an empty or broken page which was supposed to explain it.