We haven't found a better way of always getting the template name than putting the following code with all the cftry blocks. Problem is, an error in a cfincluded file within the cftry block will show as an error in the file with the cftry block, not the actual cfincluded file.
Anybody got a better way? thanks, Chris Norloff <!--- name of the current cfm template file (the error template) ---> <cfset error_template = GetCurrentTemplatePath()> ---------- Original Message ---------------------------------- from: Brook <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] date: Thu, 03 Oct 2002 11:53:21 -0700 >I'm logging all errors with a CFC that sends SMS alerts and does other >geeky stuff ;). But All my error messages are missing the actual name of >the template where the error occurred. Which makes it damn near impossible >to debug. What am i missing below (template only gives me the base >template, not the actual included template with the error) > >"Exception Error --- Exception Type:#error.type#, >Template: #error.Template#, >Diagnostics: #error.Diagnostics#, >Remote Address: #error.RemoteAddress#, >HTTP Referrer:#error.HTTPReferer#" > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

