Skip to main content
Participating Frequently
March 11, 2008
Answered

cferror not finding all errors

  • March 11, 2008
  • 1 reply
  • 371 views
I put this in Application.cfm <cferror type="request" template="testerr.cfm"> and made a error reporting page hoping to catch and and handle any error. It is CFMX6.1 by the way.

***If I try <cfset testval_1=1> and then try to cfoutput testval_2 which is not assigned, the error is caught by cferror and the error page displays just fine.
***But if I try <cfset testval_1=>, I get the default error message Invalid CFML construct found on line 18 at column 11.

What am I doing wrong?
This topic has been closed for replies.
Correct answer Newsgroup_User
you are doing nothing wrong. your second example is a compiler error
(invalid cfml), not request error.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

1 reply

Newsgroup_UserCorrect answer
Inspiring
March 11, 2008
you are doing nothing wrong. your second example is a compiler error
(invalid cfml), not request error.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
bill0Author
Participating Frequently
March 12, 2008
Thanks.