Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix: cover logs error for ws message #3392

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6252,13 +6252,13 @@ export class Connection {
] = subscription.callbacks;
await this._updateSubscriptions();
} catch (e) {
if (e instanceof Error) {
console.error(
`${method} error for argument`,
console.error(
`Received ${e instanceof Error ? '' : 'JSON-RPC '}error calling \`${method}\``,
{
args,
e.message,
);
}
error: e,
},
);
if (!isCurrentConnectionStillActive()) {
return;
}
Expand Down
Loading