Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

How do we extract the HTTPError message?


Reply


455 Views

Avatar
HansR

Community Member, 140 Posts

11 July 2011 at 5:50pm

The HTTPError class' constructor includes a message parameter for providing additional information about what went wrong. However, this doesn't get displayed in the error page. Is there any method of including it on the error page? Failing that, is there any way to log those messages?

My preference would be to show it on the error page so that the user has a bit more information as to what went wrong. For example, if a user entered a URL with the wrong ID, the message would state: "That item does not exist."

Hans