Hi! It seems like errorInfo/errorCode cannot just simply be set by Tcl_SetVar() as Tcl will overwrite those if the interp flags were not correctly set. The latter is unfortunaltely not "exported" to the outside, so the only chance you have is to call Tcl_SetErrorCode and/or Tcl_AddObjErrorInfo/Tcl_AddErrorInfo.
I found that because this seems not to work correctly: lexxsrv:nscp 1> ns_job create test test lexxsrv:nscp 2> ns_job queue test "error A B C" job0 lexxsrv:nscp 3> ns_job wait test job0 A lexxsrv:nscp 4> set errorCode NONE lexxsrv:nscp 5> set errorInfo A while executing "ns_job wait test job0" Cheers Zoran ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel