@solana/web3.js 1.95.3 → 1.95.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.95.3",
3
+ "version": "1.95.4",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
package/src/connection.ts CHANGED
@@ -6252,13 +6252,13 @@ export class Connection {
6252
6252
  ] = subscription.callbacks;
6253
6253
  await this._updateSubscriptions();
6254
6254
  } catch (e) {
6255
- if (e instanceof Error) {
6256
- console.error(
6257
- `${method} error for argument`,
6255
+ console.error(
6256
+ `Received ${e instanceof Error ? '' : 'JSON-RPC '}error calling \`${method}\``,
6257
+ {
6258
6258
  args,
6259
- e.message,
6260
- );
6261
- }
6259
+ error: e,
6260
+ },
6261
+ );
6262
6262
  if (!isCurrentConnectionStillActive()) {
6263
6263
  return;
6264
6264
  }