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

Commit de02208

Browse files
committed
fix: fixed error flushing
1 parent 0a79878 commit de02208

File tree

3 files changed

+30
-33
lines changed

3 files changed

+30
-33
lines changed

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"@anycli/parser": "^3.2.6"
1717
},
1818
"devDependencies": {
19-
"@anycli/config": "^1.3.40",
20-
"@anycli/errors": "^0.2.1",
21-
"@anycli/plugin-help": "^0.7.1",
22-
"@anycli/plugin-not-found": "^0.1.18",
23-
"@anycli/plugin-plugins": "^0.2.14",
19+
"@anycli/config": "^1.3.43",
20+
"@anycli/errors": "^0.2.2",
21+
"@anycli/plugin-help": "^0.7.2",
22+
"@anycli/plugin-not-found": "^0.1.19",
23+
"@anycli/plugin-plugins": "^0.2.15",
2424
"@anycli/tslint": "^0.2.7",
2525
"@types/chai": "^4.1.2",
2626
"@types/mocha": "^2.2.48",

src/command.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ export default abstract class Command {
104104
} else throw err
105105
}
106106
protected async finally(_: Error | undefined) {
107-
try {await require('@anycli/errors').config.errorLogger.flush() } catch {}
107+
try {
108+
await require('@anycli/errors').config.errorLogger.flush()
109+
// tslint:disable-next-line no-console
110+
} catch (err) { console.error(err) }
108111
}
109112

110113
protected _help() {

yarn.lock

+21-27
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,19 @@
22
# yarn lockfile v1
33

44

5-
"@anycli/command@^1.2.14":
6-
version "1.2.15"
7-
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.15.tgz#4eac9562ebcbcc516f6ac5c98464538f45f51cd5"
5+
"@anycli/command@^1.2.18":
6+
version "1.2.18"
7+
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.18.tgz#c60daf9ca31763cfd53df4b79af304000424eb29"
88
dependencies:
99
"@anycli/parser" "^3.2.6"
1010

11-
"@anycli/command@^1.2.17":
12-
version "1.2.17"
13-
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.17.tgz#557a37cd8669afc3d2314627b7dae81eb61d0c6d"
14-
dependencies:
15-
"@anycli/parser" "^3.2.6"
16-
17-
"@anycli/config@^1.3.40":
18-
version "1.3.40"
19-
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.3.40.tgz#0c8c3c80571fc020ed13bdacba9744604fb77a13"
11+
"@anycli/config@^1.3.43":
12+
version "1.3.43"
13+
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.3.43.tgz#82ba3f26bd65d35d83774776c7f681cbf8a9b72d"
2014

21-
"@anycli/errors@^0.2.1":
22-
version "0.2.1"
23-
resolved "https://registry.yarnpkg.com/@anycli/errors/-/errors-0.2.1.tgz#719a95cd9c23838c65929da5d625a7537dd7d035"
15+
"@anycli/errors@^0.2.2":
16+
version "0.2.2"
17+
resolved "https://registry.yarnpkg.com/@anycli/errors/-/errors-0.2.2.tgz#1e9c8716a2164a52053dae23d7659b23dcb5e143"
2418
dependencies:
2519
clean-stack "^1.3.0"
2620
fs-extra "^5.0.0"
@@ -32,31 +26,31 @@
3226
version "3.2.6"
3327
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.6.tgz#bbd119a80709099179a9f11af0dc44b68c54575b"
3428

35-
"@anycli/plugin-help@^0.7.1":
36-
version "0.7.1"
37-
resolved "https://registry.yarnpkg.com/@anycli/plugin-help/-/plugin-help-0.7.1.tgz#6493a9b580d3cba47583f51f31fe410f056a59f9"
29+
"@anycli/plugin-help@^0.7.2":
30+
version "0.7.2"
31+
resolved "https://registry.yarnpkg.com/@anycli/plugin-help/-/plugin-help-0.7.2.tgz#8bf8aad477c358c0a13f29301d9cee062c7602e2"
3832
dependencies:
39-
"@anycli/command" "^1.2.17"
33+
"@anycli/command" "^1.2.18"
4034
chalk "^2.3.0"
4135
indent-string "^3.2.0"
4236
lodash.template "^4.4.0"
4337
string-width "^2.1.1"
4438
widest-line "^2.0.0"
4539
wrap-ansi "^3.0.1"
4640

47-
"@anycli/plugin-not-found@^0.1.18":
48-
version "0.1.18"
49-
resolved "https://registry.yarnpkg.com/@anycli/plugin-not-found/-/plugin-not-found-0.1.18.tgz#2dcf08cb80f03d81a262b7f36eb722a47be269b5"
41+
"@anycli/plugin-not-found@^0.1.19":
42+
version "0.1.19"
43+
resolved "https://registry.yarnpkg.com/@anycli/plugin-not-found/-/plugin-not-found-0.1.19.tgz#eca0a39bf183c7353b817b752604c14a7ced597d"
5044
dependencies:
51-
"@anycli/command" "^1.2.14"
45+
"@anycli/command" "^1.2.18"
5246
"@heroku-cli/color" "^1.1.3"
5347
string-similarity "^1.2.0"
5448

55-
"@anycli/plugin-plugins@^0.2.14":
56-
version "0.2.14"
57-
resolved "https://registry.yarnpkg.com/@anycli/plugin-plugins/-/plugin-plugins-0.2.14.tgz#e44276035181f021ae85e5e2fca7e21d61a2f975"
49+
"@anycli/plugin-plugins@^0.2.15":
50+
version "0.2.15"
51+
resolved "https://registry.yarnpkg.com/@anycli/plugin-plugins/-/plugin-plugins-0.2.15.tgz#14b5c514a921cff03a3cdf8b291ebee69d83ab16"
5852
dependencies:
59-
"@anycli/command" "^1.2.14"
53+
"@anycli/command" "^1.2.18"
6054
"@heroku-cli/color" "^1.1.3"
6155
chalk "^2.3.0"
6256
cli-ux "^3.3.18"

0 commit comments

Comments
 (0)