Commit a27efdb
Fixes #207: Synchronously log error on exit
Calling `process.exit(1)` exits the process immediately and might prevent writes from completing as explained in [process.exit documentation](https://nodejs.org/api/process.html#process_process_exit_code). Using `fs.writeSync` ensures that the writes are done before exiting.1 parent 9034a03 commit a27efdb
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
| 432 | + | |
434 | 433 | | |
435 | 434 | | |
436 | | - | |
| 435 | + | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
| |||
0 commit comments