Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information