More CFMX Error Modifications

Did you ever notice that if you encounter a CF error and use IE, the error template collapses, and hides, the stack trace? Of course, no one I know actually uses IE. All the cool kids use Firefox. Well, it is trivial to update your exception template to hide the strack traces in Firefox as well.

Open up /web-inf/exception/detail.cfm and find this line:

<cfset bIE = (cgi.user_agent contains “MSIE”)>

and change it to:

<cfset bIE = (cgi.user_agent contains “MSIE” or cgi.user_agent contains “Firefox”)>

That’s it. Enjoy.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments