Closed Chengxuan closed 1 year ago
I understand the need for exit(), just suggesting the exit code be eg 1 instead of 0 in case of error. On Jan 12, 2023 at 6:58 AM -0500, Chengxuan Xing @.***>, wrote:
@Chengxuan commented on this pull request. In holder/wallet/index.js:
})
.catch((err) => {
- console.error(err);
- });
- console.error(err.message);
- }).finally(() => process.exit(0)); this is just there because node.js thread doesn't exist. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
@nedgar I agree, if there is a need for this app to return error, the error shouldn't be swallowed by the catch block and thus exit should have an error return code.
Signed-off-by: Chengxuan Xing chengxuan.xing@kaleido.io