Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » How do we extract the HTTPError message?

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 442 Views
  • HansR
    Community Member
    140 Posts

    How do we extract the HTTPError message? Link to this post

    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."


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.