From 992c1673df788d3564f1726d28068b34326300ba Mon Sep 17 00:00:00 2001 From: yoyo930021 Date: Fri, 25 Sep 2020 19:24:12 +0800 Subject: [PATCH 1/3] Fix #2324 --- vti/src/cli.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vti/src/cli.ts b/vti/src/cli.ts index 5b0f5803aa..a3ac876645 100644 --- a/vti/src/cli.ts +++ b/vti/src/cli.ts @@ -165,6 +165,6 @@ 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}`); }); From c471cf9a37f273b90c4c69528136479da9711bf8 Mon Sep 17 00:00:00 2001 From: yoyo930021 Date: Fri, 25 Sep 2020 19:59:51 +0800 Subject: [PATCH 2/3] Fix #2324 --- vti/src/cli.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vti/src/cli.ts b/vti/src/cli.ts index a3ac876645..7aba9d4a0d 100644 --- a/vti/src/cli.ts +++ b/vti/src/cli.ts @@ -167,4 +167,5 @@ async function getDiagnostics(workspaceUri: URI) { } })().catch(err => { console.error(`VTI operation failed with error: ${err}`); + process.exit(1); }); From e4eea89b9cd2a72b0cecac8a09f916af3da65ba1 Mon Sep 17 00:00:00 2001 From: yoyo930021 Date: Fri, 25 Sep 2020 20:00:09 +0800 Subject: [PATCH 3/3] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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)