Hello,
testing the operation of error-handling pages today. I came across a situation where I made a mistake in the code to simulate this error.
I would like to avoid exposing code fragments that are not understood by the user (in my opinion they should be logged). But I would like to keep the friendly messages returned by CHttpException.
I know that the
layout.errors.twig file inside the theme is responsible for this, which I can overwrite by myself, remove lines
Code:
<h2> {{aError.title}} </h2>
But this is not a satisfactory solution for me, because I would like to keep the text messages generated by Lime when capturing events, and avoid server messages that are not user friendly.