Chuck, heres what i do....



<cftry>


page in here..


<cfcatch type="Any">

<cfset x = getHTTPRequestData()>


<cfmail to="" cc="" bcc="" from="" subject="" type="HTML">
<h1>#cgi.server_name#</h1>      

<h2>Error in #GetCurrentTemplatePath()#</h2>

Error Details;<br>
<cfdump var="#cfcatch#">

<hr>
HTTP Request Details;<br>
<cfdump var="#x#">

</cfmail>

</cfcatch>
</cftry> 




That gives me just about everything I could want to know about the 
error.


-----Original Message-----
From: Brockman, Chuck [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 16:28
To: CF-Talk
Subject: CFCatch not displaying all variables


I'm using cfmail to notify when a page fails on our site.
 
An example of the code is as follows.
 
Error Type: #cfcatch.type#
 
Message: #replace(cfcatch.message,"&nbsp;"," ","ALL")#
<cfif cfcatch.type is "DATABASE">NativeErrorCode:
#cfcatch.nativeerrorcode#</cfif>
<cfif cfcatch.type is "DATABASE">SQLState: #cfcatch.sqlstate#</cfif>
 
Detail:
#cfcatch.detail#
 
 
The problem is that resulting email does not display the detail.  This 
only
became a problem after we upgraded to CF5 last week.
 
Am I missing something obvious?  It's Friday, so that well may be the 
case.
 
Regards,
 
Chuck Brockman
Internet Applications Developer
Yale Security Group
*  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
* 704-226-6130 (direct)
* 800-438-1951 ext. 130 (toll-free)
*  <http://www.yalesecurity.com/> http://www.yalesecurity.com
 
 


______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to