Skip to content

Commit

Permalink
Fix wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjones1 committed Mar 17, 2022
1 parent 2bb759f commit 906985a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transports/WebSocketTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class WebSocketTransport extends Transport {
if (err) {
const jsonError = err instanceof JSONRPCError
? err
: new JSONRPCError(e.message, ERR_UNKNOWN, err);
: new JSONRPCError(err.message, ERR_UNKNOWN, err);
this.transportRequestManager.settlePendingRequest(notifications, jsonError);
this.transportRequestManager.settlePendingRequest(getBatchRequests(data), jsonError);
prom = Promise.reject(jsonError);
Expand Down

0 comments on commit 906985a

Please sign in to comment.