Forum OpenACS Q&A: Catching errors

Collapse
3: Catching errors (response to 1)
Posted by David Walker on
This one gives you a nice error with all the information about what file/function the error is in.

if {[catch { error "some error" } ] } {
    variable errorInfo
    ns_log error $errorInfo
}