veged/coa

Use exitCode instead of exit()

Opened this issue · 0 comments

qfox commented

To provide a better user experience we should not force event loop to stop since some library code can require additional things to do.

In other words we should set exitCode instead of calling exit() method.

coa/lib/cmd.js

Line 197 in fb1080e

process.exit(code || exitCode || 0);