diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-27 03:54:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-27 03:54:15 +0800 |
commit | 40cf805e5ec0b49b6b193bad941b97049864ba0b (patch) | |
tree | 8a970bf3f0b9ce3ca3662d0707646088db54b1fa /packages/monorepo-scripts/src | |
parent | 09d64961359cb63ff0bf1496b5f30840f030d8db (diff) | |
download | dexon-sol-tools-40cf805e5ec0b49b6b193bad941b97049864ba0b.tar dexon-sol-tools-40cf805e5ec0b49b6b193bad941b97049864ba0b.tar.gz dexon-sol-tools-40cf805e5ec0b49b6b193bad941b97049864ba0b.tar.bz2 dexon-sol-tools-40cf805e5ec0b49b6b193bad941b97049864ba0b.tar.lz dexon-sol-tools-40cf805e5ec0b49b6b193bad941b97049864ba0b.tar.xz dexon-sol-tools-40cf805e5ec0b49b6b193bad941b97049864ba0b.tar.zst dexon-sol-tools-40cf805e5ec0b49b6b193bad941b97049864ba0b.zip |
Also use failure exit code if unexpected error occurs
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r-- | packages/monorepo-scripts/src/test_installation.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/test_installation.ts b/packages/monorepo-scripts/src/test_installation.ts index e626fb891..10709af25 100644 --- a/packages/monorepo-scripts/src/test_installation.ts +++ b/packages/monorepo-scripts/src/test_installation.ts @@ -86,10 +86,12 @@ function logIfDefined(x: any): void { logIfDefined(packageError.error.stack); }); process.exit(1); + } else { + process.exit(0); } })().catch(err => { utils.log(`Unexpected error: ${err.message}`); - process.exit(0); + process.exit(1); }); async function testInstallPackageAsync( |