diff --git a/CHANGELOG.md b/CHANGELOG.md index 399748d59f..3dd4dcc6ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Upgrade `@prettier/plugin-pug` to fix formatter issues. #2347. - Fix files with CRLF having errors with wrong range. #1319. - 🙌 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 d04d52d222..609ed0a274 100644 --- a/vti/src/cli.ts +++ b/vti/src/cli.ts @@ -163,6 +163,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); });