Repository navigation
Commit 01ec2f9
run_step.tcl: fail on any status but 0, the checkpoint written first
catch returns 1 for an error, and 3, 4 or another code for a break,
continue or return -code that no loop caught; the handler read
-errorinfo, which only an error has, so such a step failed on the
missing key with neither its own message nor a checkpoint. Any status
but 0 now writes the checkpoint and is raised again with return
-options, its status, message and stack as they were. A top-level
return in a step script is status 0, as source makes it, and still ends
the step normally.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 71b6b9b commit 01ec2f9
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
27 | 29 | | |
0 commit comments