Commit 69c84de
committed
fix: catch unhandled promise rejection in non-interactive CLI path
runNonInteractive() is async but was called fire-and-forget. If an
unexpected error escapes the internal try/catch, Node.js would emit
an unhandled rejection instead of clean JSON. Add .catch() to ensure
errors always produce valid JSON output with exit code 1.1 parent 6288b80 commit 69c84de
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
0 commit comments