I'm not sure what version of CF you're running, however if its 7+ then I
would look at moving over to Application.cfc, its far more comprehensive in
a great many ways.

You can then use the onError() method to handle any exceptions thrown, it's
quite a bit cleaner.

Rob

-----Original Message-----
From: Michael E. Carluen [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2007 16:25
To: CF-Talk
Subject: cferror wont fire on syntax problems

I have the following catch-all cferror in place on my application.cfm:

 

<cferror type="EXCEPTION" exception="any" template="/error/index.cfm"
mailto="[EMAIL PROTECTED]">

<cferror type="REQUEST" template="/error/index.cfm" mailto="[EMAIL PROTECTED]
">

 

However, If I run my test page with a bad cf syntax
<cfoutput>#now(#</cfoutput>, it still displays the default error display
thrown by CF, and not my specified template.

 

Any ideas, suggestions anyone?





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291124
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to