Index: openacs-4/packages/xowiki/tcl/package-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/package-procs.tcl,v diff -u -r1.332.2.143 -r1.332.2.144 --- openacs-4/packages/xowiki/tcl/package-procs.tcl 29 Nov 2023 13:44:39 -0000 1.332.2.143 +++ openacs-4/packages/xowiki/tcl/package-procs.tcl 16 Jan 2024 17:35:16 -0000 1.332.2.144 @@ -1472,10 +1472,18 @@ # # The exception was a real error # + ad_log error "error during invocation of method $method errorMsg: $errorMsg, $::errorInfo" - return [:error_msg -status_code 500 \ - -template_file $error_template \ - "error during [ns_quotehtml $method]:
[ns_quotehtml $errorMsg]
"] + + if {[ns_conn isconnected]} { + # + # When connected, also try to render the error to the + # user. + # + return [:error_msg -status_code 500 \ + -template_file $error_template \ + "error during [ns_quotehtml $method]:
[ns_quotehtml $errorMsg]
"] + } } } finally {