Skip to content

Commit e133380

Browse files
Set correct exit code upon ucaught exception (#2777)
1 parent 45cef41 commit e133380

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/common

lib/nativescript-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as shelljs from "shelljs";
33
shelljs.config.silent = true;
44
shelljs.config.fatal = true;
55
import { installUncaughtExceptionListener } from "./common/errors";
6-
installUncaughtExceptionListener(process.exit);
6+
installUncaughtExceptionListener(process.exit.bind(process, ErrorCodes.UNCAUGHT));
77

88
import { settlePromises } from "./common/helpers";
99

0 commit comments

Comments
 (0)