> Hmmmm....  Even after adding a <CFTRY> to the top,
> this doesn't seem to work for me (yes, I changed
> the email address ;-)
>
> Not having tried CFTRY/CFCATCH before, do I need
> to do more than add the script?
>
> best,  paul

Hi Paul,

ok here again with the starting tags.

<!--- index.cfm --->

<cf_stripWhitespace>
<cftry>

<cfinclude template="app_locals.cfm">

<cf_bodycontent>
 <cfparam name="attributes.fuseaction" default="">
 <cfswitch expression="#attributes.fuseaction#">

  <cfcase value="..">
.....
  </cfcase>


  <cfdefaultcase>
....
  </cfdefaultcase>

 </cfswitch>
</cf_bodycontent>

<cfinclude template="../app_layout.cfm">

<cfcatch type="any">
A internal error occured!

<cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]"
 subject="Error" type="HTML">

<table>
<cfset err_vars =
"attributes.fuseaction,client.user_id,cgi.content_length,cgi.http_accept,cgi.http_referer,cgi.http_user_agent,cgi.path_info,cgi.path_translated,cgi.query_string,cgi.remote_addr,cgi.remote_host,cgi.remote_ident,cgi.remote_user,cgi.script_name,cgi.server_port,cfcatch.detail,cfcatch.errnumber,cfcatch.lockname,cfcatch.lockoperation,cfcatch.message,cfcatch.missingfilename,cfcatch.nativeerrorcode,cfcatch.sqlstate,cfcatch.type,server.coldfusion.productname,server.coldfusion.productversion,server.os.name,server.os.version,server.os.buildnumber">

<cfloop index="err_var" list="#err_vars#" delimiters=",">
 
<cftry><tr><td>#err_var#</td><td>#evaluate(err_var)#</td></tr><cfcatch></cfcatch></cftry>
</cfloop>
</table>

</cfmail>

</cfcatch>
</cftry>
</cf_stripwhitespace>

--
MfG
Felix Huber


-------------------------------------------------------
Felix Huber, Web Application Programmer, Webtopia
Guendlinger Str.2, 79241 Ihringen - Germany
[EMAIL PROTECTED]        (07668)  951 156 (phone)
http://www.webtopia.de        (07668)  951 157 (fax)
                              (01792)  205 724 (mobile)
-------------------------------------------------------



------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to