I have a large number of complicated views on a site, some of which, when searched with certain options or by certain users, give the following error:
An illegal choice has been detected. Please contact the site administrator.
Is it possible to somehow catch this error and email the admin? Ideally, I would be able to include the URL of the view causing the problem and the UID of the user accessing the view for troubleshooting purposes.