Skip to content
Tcl Source Code Artifact [f8daa07e09]
Login

Artifact [f8daa07e09]

Artifact f8daa07e09d4bbba45e2f6df8733db5257c99a13:

Ticket change [f8daa07e09] - Ticket [3104471fffffffff|3104471fff] <i>&quot;command returned bad code: 2&quot; in bgerror</i> status still Open with 6 other changes by kennykb on 2010-11-08 07:04:06.
D 2010-11-08T07:04:06
J assignee dgp
J icomment Hmmm.\n\nFrom\sthe\ssymptoms,\sit\sappears\sas\sif\ssomething\sinside\sthe\s[try]\sblock\sis\sdoing\sa\s'return\s-code\sreturn'\sor\s'return\s-level'\sall\sthe\sway\sout\sto\sthe\sevent\sloop,\scausing\sthe\s"invalid\sreturn\scode\s2"\s(2\sis\sTCL_RETURN).\n\nSince\sreturn\scode\s2\sisn't\san\serror,\s::errorInfo\sdoesn't\sget\sset,\sso\sit\scontains\swhatever\serror\sinformation\swas\spertinent\sto\sthe\slast\scatch\s-\sin\sthis\scase\sthe\sone\sin\sinit.tcl.\s\sSo\sthe\sstack\strace\sis\sbogus,\sbut\sthere's\sno\sother\sstack\sinformation\sto\sreport\s(the\sreturn\swas\ssuccessful,\sit's\sjust\sthat\sit's\sasking\sthe\sevent\sloop\sto\sreturn,\sand\sthe\sevent\sloop\shas\snowhere\sto\sreturn\s*to.*\n\nIt's\sarguable\sthat\serrorInfo\sshould\sbe\ssuppressed\sin\sthis\scase,\sor\sperhaps\swhatever\sis\sreporting\sthe\sinvalid\sreturn\scode\sshould\sgen\ssomething\sup\sto\sreport\swhat\scallout\sit\shad\smade\sthat\sreturned\sinappropriately.\sIn\sany\scase,\sby\smanipulating\sthe\stry/catch/finally,\syou've\sfound\swhat\scall\sit\swas:\swhat\sremains\sis\sto\sfind\sout\swhy\sit's\sdoing\s[return]\swhen\sit\sisn't\sin\sa\sproc.\n\nI'm\sforwarding\sthis\sone\sto\sdgp,\sbecause\sTclDefaultBgErrorCmd\sappears\sto\sbe\shis,\sand\she\smay\shave\smore\sinsight\sinto\show\sto\sget\sa\sless\sconfusing\smessage\sout\sof\sall\sthis.\n
J login kennykb
J mimetype text/plain
J subsystem 01.\sNotifier
J username kennykb
K 3104471fffffffffffffffffffffffffffffffff
U kennykb
Z 297415e5ceee96fe666fe7ba9fe2d48b