Skip to content

Commit

Permalink
add error stack and data to serialize error
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jan 18, 2024
1 parent 087f252 commit 49b571a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/openlogin-jrpc/src/jrpcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ export function providerFromEngine(engine: JRPCEngine): SafeEventEmitterProvider
fallbackError: {
message: res.error?.message || res.error.toString(),
code: res.error?.code || -32603,
stack: res.error?.stack,
data: res.error?.data,
},
shouldIncludeStack: true,
});
Expand Down

0 comments on commit 49b571a

Please sign in to comment.