Index: openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl,v diff -u -r1.36.2.18 -r1.36.2.19 --- openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl 4 Mar 2016 08:07:23 -0000 1.36.2.18 +++ openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl 14 May 2016 10:38:14 -0000 1.36.2.19 @@ -1175,9 +1175,15 @@ foreach elm [ad_complaints_get_list] { template::multirow append complaints $elm } - ns_return 422 text/html [ad_parse_template \ - -params [list complaints [list context $::ad_page_contract_context]] \ - "/packages/acs-tcl/lib/complain"] + if {[catch { + set html [ad_parse_template \ + -params [list complaints [list context $::ad_page_contract_context]] \ + "/packages/acs-tcl/lib/complain"] + } errorMsg]} { + ad_log error "problem rendering complain page: $errorMsg" + set html "Invalid input" + } + ns_return 422 text/html $html ad_script_abort } }