<i>Incorrect -errorline from compiled [catch]</i> status still Open with 7 other changes
by
.
D 2014-08-06T17:06:40.899
J assignee dgp
J closer nobody
J comment The\sdocumentation\sstates:\r\n"catch\sscript\s?resultVarName?\s?optionsVarName?"\r\n...\s"The\svalue\sof\sthe\s-errorline\sentry\sis\san\sinteger\sindicating\swhich\sline\sof\sscript\swas\sbeing\sevaluated\swhen\sthe\serror\soccurred."\r\n\r\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:\r\n\r\nproc\stest\s{}\s{\r\n\s\sputs\sinside...\\[test]\r\n\s\sputs\s"some\smore\stext"\r\n\s\sswitch\s{}\s{\r\n\s\s\s\sdefault\s{\r\n\s\s\s\s\s\scatch\s{\r\n\s\s\s\s\s\s\s\sputs\s"inside\sscript"\r\n\s\s\s\s\s\s\s\ssdfsdf\s#\sthe\serror\r\n\s\s\s\s\s\s}\serr\sopt\r\n\s\s\s\s}\r\n\s\s}\r\n\s\sputs\s$err\r\n\s\sputs\s$opt\r\n}\r\n\r\n%\stest\r\ninside...[test]\r\nsome\smore\stext\r\ninside\sscript\r\ninvalid\scommand\sname\s"sdfsdf"\r\n-code\s1\s-level\s0\s-errorcode\sNONE\s-errorinfo\s{invalid\scommand\sname\s"sdfsdf"\r\n\s\s\s\swhile\sexecuting\r\n"sdfsdf\s#\sthe\serror"}\s-errorline\s8\r\n\r\ninstead\sof\s-errorline\s3
J icomment Nothing\smuch\sto\ssay\son\sthis.
J login msofer
J mimetype text/plain
J severity Minor
K 2935779fffffffffffffffffffffffffffffffff
U msofer
Z 82aadd0aa08ee3a81127fdda2734cca8