In Pages document library (Publishing Portal), if we try to restore version history without document checkout, the following error is thrown "You must first check out this document before making changes." (in ULS logs).
But in the Sharepoint page, asp.net runtime error page is displayed. How to display sharepoint error page with valid message (out of box) without asp.net runtime error page.
Any configuration can solve the error page display problem?