Skip to content

Commit

Permalink
chore(vscode): capture error message if electron test suite fails (#1783
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Druue authored Jul 24, 2024
1 parent 33cb22a commit b640446
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vscode/src/__test__/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ async function main(): Promise<void> {
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)
}
}
Expand Down

0 comments on commit b640446

Please sign in to comment.