It comes down to knowing what you write, and what was last displayed on the
screen....
However I find this method to work very well:-) It displays a list of the
current stack and it should display the last file called/opened and thing
its a matter of taking the matter from there:-)
<CFCATCH TYPE="Template">
<!--- the message to display --->
<H3>You've Thrown a Database <B>Error</B></H3>
<CFOUTPUT>
<!--- and the diagnostic message from the ColdFusion server --->
<P>#CFCATCH.message#</P>
<P>Caught an exception, type = #CFCATCH.TYPE# </P>
<P>The contents of the tag stack are:</P>
<CFLOOP index=i from=1 to = #ArrayLen(CFCATCH.TAGCONTEXT)#>
<CFSET sCurrent = #CFCATCH.TAGCONTEXT[i]#>
<BR>#i# #sCurrent["ID"]#
(#sCurrent["LINE"]#,#sCurrent["COLUMN"]#) #sCurrent["TEMPLATE"]#
</CFLOOP>
</CFOUTPUT>
</CFCATCH>
-----Original Message-----
From: Peter Theobald [mailto:[EMAIL PROTECTED]]
Sent: Friday, 22 September 2000 5:05 PM
To: CF-Talk
Subject: RE: Template not found. Which template?
How would it be clear if I click on a link that loaded a handler template
(index.cfm) that itself includes 30 other templates?
I suppose I could put <cftry> and <cfcatch> around the entire file and print
more information myself. But the last time I tried that the error
information I found was exactly the same as what CF printed by default. No
more no less.
At 05:08 PM 9/22/00 +1100, Scott, Andrew wrote:
>Try <cftry> and <cfcatch> tags there is a way to put the stack onto the
page
>that will show the last page called, then it would be a matter of that.
>However if you clicked on a link or something then it would beclear that
>this template would be the culprit, basic QA would solve this fairly
>quickly:-)
>
>regards
>
>Andrew Scott
>ANZ eCommerce Centre
>* Ph 9273 0693
>* [EMAIL PROTECTED]
>
>
>-----Original Message-----
>From: Peter Theobald [mailto:[EMAIL PROTECTED]]
>Sent: 22 September 2000 16:30
>To: CF-Talk
>Subject: Template not found. Which template?
>
>
>I have a "FuseBox-like" structure with a lot of template files including
other template files.
>Now I get the error: Template not found. But WHICH template isn't found?!
It could be any one of about 30 templates!
>
>Why on Earth didn't Allaire print the NAME of the template you are trying
to include?
>How can I find out?
>
>
>
>---------------------------------------------------------------------- ----
-
>Peter Theobald, Chief Technology Officer
>LiquidStreaming http://www.liquidstreaming.com
>[EMAIL PROTECTED]
>Phone 1.212.545.1232 Fax 1.212.679.8032
>
>---------------------------------------------------------------------------
-
>--
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>---------------------------------------------------------------------------
---
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
---------------------------------------------------------------------------
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 Fax 1.212.679.8032
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.