We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b784b3e commit 5e2cd3cCopy full SHA for 5e2cd3c
vscode-client/src/server.ts
@@ -20,7 +20,8 @@ connection.listen()
20
21
// Don't die on unhandled Promise rejections
22
process.on('unhandledRejection', (reason, p) => {
23
- connection.console.error(`Unhandled Rejection at promise: ${p}, reason: ${reason}`)
+ const stack = reason instanceof Error ? reason.stack : reason
24
+ connection.console.error(`Unhandled Rejection at promise: ${p}, reason: ${stack}`)
25
})
26
27
process.on('SIGPIPE', () => {
0 commit comments