Comparing version 3.3.7 to 3.3.8
@@ -0,1 +1,9 @@ | ||
<a name="3.3.8"></a> | ||
## [3.3.8](https://github.com/dxcli/cli-ux/compare/bc6ad0a7ff5130dcdd9a74bd61d07e9506a10a92...v3.3.8) (2018-01-28) | ||
### Bug Fixes | ||
* fixed fatal errors ([88173e0](https://github.com/dxcli/cli-ux/commit/88173e0)) | ||
<a name="3.3.7"></a> | ||
@@ -2,0 +10,0 @@ ## [3.3.7](https://github.com/dxcli/cli-ux/compare/69a226230021f72bdb52adaf9394bfb938d1e44f...v3.3.7) (2018-01-28) |
@@ -130,2 +130,3 @@ "use strict"; | ||
return; | ||
let exit = 1; | ||
if (err['cli-ux'] && typeof err['cli-ux'].exit === 'number') { | ||
@@ -136,8 +137,11 @@ if (err.code === 'ESIGINT') | ||
displayError(err); | ||
await cli.done().catch(cli.debug); | ||
process.exit(err['cli-ux'].exit); | ||
const c = err['cli-ux'].exit; | ||
if (typeof c === 'number') | ||
exit = c; | ||
} | ||
else { | ||
cli.fatal(err); | ||
cli.fatal(err, { exit: false }); | ||
} | ||
await cli.done().catch(cli.debug); | ||
process.exit(exit); | ||
} | ||
@@ -144,0 +148,0 @@ catch (newError) { |
{ | ||
"name": "cli-ux", | ||
"description": "cli IO utilities", | ||
"version": "3.3.7", | ||
"version": "3.3.8", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/dxcli/cli-ux/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61400
1588