Skip to content

Commit

Permalink
debug: fix remote attach fails without message (microsoft#236117)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 authored Dec 14, 2024
1 parent cdec0c6 commit 31092ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/workbench/contrib/debug/node/debugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ export abstract class NetworkDebugAdapter extends StreamDebugAdapter {
});

this.socket.on('error', error => {
// On ipv6 posix this can be an AggregateError which lacks a message. Use the first.
if (error instanceof AggregateError) {
error = error.errors[0];
}

if (connected) {
this._onError.fire(error);
} else {
Expand Down

0 comments on commit 31092ac

Please sign in to comment.