tracker issue : CF-3184203

select a category, or use search below
(searches all categories and all time range)

Error Context

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Armin Mazariegos / Armin Mazariegos (Armin Mazariegos)

Created: 05/07/2012

Components: Language

Versions: 9.0.1

Failure Type: Enhancement Request

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win 2008 Server R2

Vote Count: 0

When ColdFusion shows the information of an error in the application, it shows the lines of the template where the error happened. See highlighted area in the attachment.

We want to capture that information but #error# structure does not provide it. Therefore we would like to ask for an attribute like #error.context# which provides the lines where the error happened.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3184203

External Customer Info:
External Company:  
External Customer Name: ArminMazariegos
External Customer Email:  
External Test Config: Windows 2008 R2

SQL 2008

Coldfusion 9.0.1



  1. May 08, 2012 00:00:00: 1_error.png


Can you try to get the line number like, <cftry> <cfscript> x = 100; z = x + y; </cfscript> <!--- <cfset x = 100> <cfset z = x + y> ---> <cfcatch> <cfdump var="#cfcatch.TagContext#"> </cfcatch> </cftry> Are you looking for this tagContext?
Comment by Paul N.
19519 | May 08, 2014 03:47:14 AM GMT
You can use "cfcatch.TagContext" for getting the line number. Hope this helps you in figuring out the line number where the error is occurred. If this doesn't solve your problem. Please revert back with a repro case, we would be more than happy to help you. Closing this bug as NotABug.
Comment by HariKrishna K.
19520 | December 03, 2014 02:01:50 AM GMT