.
D 2010-01-20T18:57:49
J assignee dkf
J cmimetype text/plain
J comment The\sdocumentation\sstates:\n"catch\sscript\s?resultVarName?\s?optionsVarName?"\n...\s"The\svalue\sof\sthe\s-errorline\sentry\sis\san\sinteger\sindicating\swhich\sline\sof\sscript\swas\sbeing\sevaluated\swhen\sthe\serror\soccurred."\n\nHowever,\sif\sone\sruns\ssome\s[catch]\scode\sinside\sa\sproc,\sthe\s-errorline\sinteger\sindicates\sthe\sline\sof\sthe\sproc\sscript\sthat\shas\sthe\serror\sand\snot\sthe\sline\sof\sthe\scatch\sscript,\sas\sis\sstated\sin\sthe\sdoc.\sThe\sfollowing\scode\sshows\sthe\sproblem:\n\nproc\stest\s{}\s{\n\s\sputs\sinside...\\[test]\n\s\sputs\s"some\smore\stext"\n\s\sswitch\s{}\s{\n\s\s\s\sdefault\s{\n\s\s\s\s\s\scatch\s{\n\s\s\s\s\s\s\s\sputs\s"inside\sscript"\n\s\s\s\s\s\s\s\ssdfsdf\s#\sthe\serror\n\s\s\s\s\s\s}\serr\sopt\n\s\s\s\s}\n\s\s}\n\s\sputs\s$err\n\s\sputs\s$opt\n}\n\n%\stest\ninside...[test]\nsome\smore\stext\ninside\sscript\ninvalid\scommand\sname\s"sdfsdf"\n-code\s1\s-level\s0\s-errorcode\sNONE\s-errorinfo\s{invalid\scommand\sname\s"sdfsdf"\n\s\s\s\swhile\sexecuting\n"sdfsdf\s#\sthe\serror"}\s-errorline\s8\n\ninstead\sof\s-errorline\s3
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dzach
J subsystem 16.\sCommands\sA-H
J title Inaccuracy\sin\sdocs\sfor\s[catch]\soption\s-errorline\s
J type Bug
K 2935779fffffffffffffffffffffffffffffffff
U dzach
Z 7507cde3551010ae65725504f09899cf