Repository navigation
Commit 2b769f0
committed
Wire WITH on error stop load-file option to copy/*on-error-stop* in v4
The WITH on error stop / on error resume next options were already
parsed by the grammar and surfaced as :on-error-stop in with-options
by ast.clj, but run-command in core.clj never read them. Only the
--on-error-stop CLI flag set copy/*on-error-stop*.
Fix: extract :on-error-stop from with-options and add it to the
binding block alongside batch-rows, batch-size, etc. Use (some? v)
instead of (or v ...) since the option is boolean: a false value from
a future explicit on-error-resume path must not be ignored.
Add parser tests verifying that:
- WITH on error stop → :on-error-stop true in with-options
- WITH on error resume next → :on-error-stop absent from with-options1 parent e15cdf9 commit 2b769f0
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
460 | 461 | | |
461 | | - | |
| 462 | + | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
0 commit comments