Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: hide EEXIT
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 19, 2018
1 parent 7d831b9 commit 2184233
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/dxcli/command/issues",
"dependencies": {
"@dxcli/config": "^0.1.15",
"@dxcli/config": "^0.1.17",
"@dxcli/parser": "^0.0.2",
"@dxcli/screen": "^0.0.0",
"cli-ux": "^3.1.0",
Expand Down
1 change: 1 addition & 0 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default abstract class Command {
await this.run()
await this.done()
} catch (err) {
if (err.code === 'EEXIT') throw err
if (this.config && this.config.engine) {
await this.config.engine.runHook('error', err)
}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@
dependencies:
find-up "^2.1.0"

"@dxcli/config@^0.1.15":
version "0.1.15"
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.15.tgz#ec22a4340806c0c528bfbc86b020b46bd7f2e404"
"@dxcli/config@^0.1.17":
version "0.1.17"
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.17.tgz#e077873abfa4247e2b66be4813f46eeb8ee94df9"
dependencies:
debug "^3.1.0"
fs-extra "^5.0.0"
Expand Down

0 comments on commit 2184233

Please sign in to comment.