Commit 0ab5877
committed
fix(init): catch LoggingUIPromptError when InkUI fails to load
When InkUI fails to import in an interactive session, the factory
falls back to LoggingUI. confirmExperimental then calls ui.select()
which throws LoggingUIPromptError — an error the catch block did not
handle, causing an unhandled crash. Catch it and surface a clear
WizardError directing the user to --yes.1 parent fa2a351 commit 0ab5877
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
365 | 372 | | |
366 | 373 | | |
367 | 374 | | |
| |||
0 commit comments