Skip to content

Commit 1d03302

Browse files
committed
1 parent 007d692 commit 1d03302

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/base/common/worker/simpleWorker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ class SimpleWorkerProtocol {
163163
err: undefined
164164
});
165165
}, (e) => {
166+
if (e.detail instanceof Error) {
167+
// Loading errors have a detail property that points to the actual error
168+
e.detail = transformErrorForSerialization(e.detail);
169+
}
166170
this._send({
167171
vsWorker: this._workerId,
168172
seq: req,

0 commit comments

Comments
 (0)