Cfcontent can be deceptive since the call itself may not be failing, but
rather the requested page may be generating the error and returning valid
HTML. Be sure of where the error is and you'll save a lot of headaches :)
Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]
-----Original Message-----
From: Percy E Perez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 11:17 AM
To: CF-Talk
Subject: catching error from cfcontent.
Hello all,
I am trying to trap an error thrown by cfcontent, I wrapped cfcontent with
cftry, but when I generate the error, I do not get my message but rather.
"Please inform the site administrator that this error has occurred (be sure
to include the contents of this page in your message to the administrator)."
which I don't want my users to see.
Any suggestions,
I am running 4.0.1/nt4.0/sp6a.
Thanks
Percy E Perez
<cftry>
<CFCONTENT TYPE="#v_mime#"
FILE="#v_file#"
>
<cfcatch type="any">
Blah....
</cfcatch>
</cftry>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists