diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a4ef8283b..b06209ed5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Upgrade `@prettier/plugin-pug` to fix formatter issues. #2347 - 🙌 Fix collapse code missing end mark. Thanks to contribution from [@yoyo930021](https://github.com/yoyo930021). #2303 and #2352. +- 🙌 Display VTI errors. Thanks to contribution from [@yoyo930021](https://github.com/yoyo930021). #2324 and #2330. ### 0.28.0 | 2020-09-23 | [VSIX](https://marketplace.visualstudio.com/_apis/public/gallery/publishers/octref/vsextensions/vetur/0.28.0/vspackage) diff --git a/vti/src/cli.ts b/vti/src/cli.ts index 5b0f5803aa..7aba9d4a0d 100644 --- a/vti/src/cli.ts +++ b/vti/src/cli.ts @@ -165,6 +165,7 @@ async function getDiagnostics(workspaceUri: URI) { console.log(' vti diagnostics ---- Print all diagnostics'); console.log(''); } -})().catch(_err => { - console.error('VTI operation failed'); +})().catch(err => { + console.error(`VTI operation failed with error: ${err}`); + process.exit(1); });