On IIS 7, is there a way to get error messages generated by print_error() to display in the browser instead of the webserver displaying it's standard 404 template page.
We are aware that you can get the moodle generated error page to display when browsing via localhost
and also when
you have the IIS7 404 "Detailed Error" setting turned on. What we don't like about this is that non-Moodle generated errors will cause IIS7 to show too much detailed information about the website.
Attached is an example of the type of error message we want to be able to display.