Page MenuHomePhabricator

Don't exit from the Aphlict Server prematurely
ClosedPublic

Authored by joshuaspence on Jan 19 2015, 11:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 11:23 PM
Unknown Object (File)
Tue, Dec 3, 1:34 PM
Unknown Object (File)
Tue, Nov 26, 1:33 PM
Unknown Object (File)
Sat, Nov 23, 11:02 AM
Unknown Object (File)
Sat, Nov 23, 10:52 AM
Unknown Object (File)
Thu, Nov 21, 11:40 PM
Unknown Object (File)
Nov 3 2024, 6:06 PM
Unknown Object (File)
Oct 31 2024, 3:22 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rP2b12f6160213: Don't exit from the Aphlict Server prematurely
Summary

By calling process.exit(1) we are forcing the Node.js process to exit prematurely. Specifically, the process is terminated before the error is written to the log file. This can be verified by inspecting the value of debug._logs[0]._writableState.writing immediately before the process is terminated.

Test Plan

Ran ./bin/aphlict debug without the ws module being installed. Verified that <<< UNCAUGHT EXCEPTION! >>> was echoed to the console as well as the log file. Also verified that the exit status was non-zero.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3902
Build 3914: [Placeholder Plan] Wait for 30 Seconds