Jump to:

5514 Posts in 1733 Topics by 1219 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: 437 Views
  • HansR
    Avatar
    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."

    Hans

    437 Views
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.