Commit bdbb1f2
committed
fix: move critical operations into try-block in get-modules
Moves `ensureDirectory()` and `validateModuleUrls()` into the try-block
to ensure the finally block executes even if these operations fail early.
Previously, if directory creation or URL validation failed immediately,
the finally block was never reached, causing the output file to never be
written and resulting in "ENOENT: no such file or directory" errors.
This ensures `modules.stage.3.json` is always written, even with an empty
modules array, allowing the pipeline to continue instead of failing completely.1 parent 0265453 commit bdbb1f2
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | 528 | | |
535 | 529 | | |
536 | 530 | | |
537 | 531 | | |
538 | 532 | | |
539 | 533 | | |
540 | | - | |
541 | | - | |
542 | 534 | | |
543 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
544 | 543 | | |
545 | 544 | | |
546 | 545 | | |
| |||
0 commit comments