Nice echo() trick working with try{} catch(){}

@micstriit showed me a nice debugging trick with echo()

<cfscript>
try {
    throw "zac";
} catch (e){
    echo(e);  // outputs the error nicely using the error template
    dump(e); // very verbose dump
}
</cfscript>

added to docs

3 Likes