:error label not triggering - 14/11/21 03:32 PM
Code
alias testerror { var %testerror 1 :label echo -sg testerror %testerror inc %testerror if (%testerror == 2) goto label :error if ($error) { reseterror | echo -sg testerror: $v1 | return } if ( { noop } }
The first part shows that a regular label can be found above the current point in script (backward jump), because we get two echos
The second part shows that the :error goto label feature does not work the same as regular label because the error is not caught, this is unexpected to me, is it normal?