From e328376a0707575cb8c6500e795f60c1338d740a Mon Sep 17 00:00:00 2001 From: Sophie Atkins Date: Wed, 24 Jul 2024 10:33:08 +0200 Subject: [PATCH] capture error message if vscode test suite fails --- packages/vscode/src/__test__/runTest.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/vscode/src/__test__/runTest.ts b/packages/vscode/src/__test__/runTest.ts index 62766ca1d8..72014a85b3 100644 --- a/packages/vscode/src/__test__/runTest.ts +++ b/packages/vscode/src/__test__/runTest.ts @@ -51,7 +51,9 @@ async function main(): Promise { PRISMA_USE_LOCAL_LS: args[0], }) } catch (err) { - console.error('Failed to run tests') + const errMsg = err instanceof Error ? ` ${err.message}` : '' + + console.error(`Failed to run tests${errMsg}`) process.exit(1) } }