Can I recommend that you don't use CFTRY/CFCATCH to handle situations that aren't 
exceptional. Use FileExists() instead to check whether the file is there before you 
try and attach it.

Steve

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 24 March 2003 16:36
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] cftry cfmailparam
> 
> 
> what's wrong with this (CF 4.5):
> 
> <cfmail from="me" to="you" subject="whatever">
> <cfloop query="getDownloads">
>      <cftry>
>           <cfmailparam file="downloads/#getDownloads.Filename#">
>           <cfcatch type="Any"></cfcatch>
>      </cftry>
> </cfloop>
> </cfmail>
> 
> I was expecting this to catch any errors, e.g. if the file 
> doesn't exist.
> However it doesn't seem to do any catching, as I just get the standard
> "Error occurred while processing request" error page.  I'm 
> probably missing
> something here, what is it?   answers on a postcard please...
> 
> 
> Duncan Cumming
> IT Manager
> 
> http://www.alienationdesign.co.uk
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
> 
> Creative solutions in a technical world
> 
> ----------------------------------------------------------------------
> Get your domain names online from:
> http://www.alienationdomains.co.uk
> Reseller options available!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to