Closed lianghx-319 closed 1 year ago
Otherwise I think using throw error
instead of process.exit(1)
is better. Maybe those method will reuse in the future and the process
object cause unnecessary refactor. Using throw error
, it can be caught wherever.
@MisterLuffy Can you have a look, when you have time for it.
Types of changes
Background and context
While command line show error with zero exit code, many execution environment will
success
, but it should be failed.Solution
Make all exit with non-zero if show error
How is the change tested?
Changelog
exitCode
退出进程exitCode
to exit processChecklist:
feature
branch and others should be submitted tomaster
branch)Other information