From 05a94fd45470c522a04ca6bcdda87f6c60a292f0 Mon Sep 17 00:00:00 2001 From: Dimitar Kerezov Date: Thu, 4 May 2017 18:24:26 +0300 Subject: [PATCH] Set correct exit code upon ucaught exception --- lib/common | 2 +- lib/nativescript-cli.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common b/lib/common index a6128811a7..e5eba381ab 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit a6128811a7416268b98aa73023cf725b80348ff4 +Subproject commit e5eba381ab3c27838fbfe678575d0510b42b9675 diff --git a/lib/nativescript-cli.ts b/lib/nativescript-cli.ts index 143c5268d5..1f30074c49 100644 --- a/lib/nativescript-cli.ts +++ b/lib/nativescript-cli.ts @@ -3,7 +3,7 @@ import * as shelljs from "shelljs"; shelljs.config.silent = true; shelljs.config.fatal = true; import { installUncaughtExceptionListener } from "./common/errors"; -installUncaughtExceptionListener(process.exit); +installUncaughtExceptionListener(process.exit.bind(process, ErrorCodes.UNCAUGHT)); import { settlePromises } from "./common/helpers";