 					//dump(error.TagContext[i]);
 				}
 			}
+			if(!isNull(error.cfcatch)) dump(error.cfcatch);
+
 		}
 		//ErrorCode,addional,TagContext,StackTrace,type,Detail,Message,ExtendedInfo
 		writeOutput('</div>');

	if(not StructKeyExists(arguments.error,'detail'))arguments.error.detail="";
	else if(arguments.error.message EQ arguments.error.detail)arguments.error.detail="";

	if(isNull(error.cfcatch))
		log type="error" log="application" text=error.message&";"&error.detail;
	else
		log type="error" log="application" exception=error.cfcatch;


	if(StructKeyExists(arguments.error,'message') and arguments.error.message NEQ "") {
		writeOutput('<div class="error">');

		writeOutput('<br>');
		writeOutput(br(arguments.error.detail));

		if(!isNull(url.debug) || longversion) {
			if(StructKeyExists(error,"TagContext")){
				loop array="#error.TagContext#" index="local.i" item="local.tc" {
					writeOutput('<br><span class="comment">');
