Skip to content

Commit

Permalink
Improve error message fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
gndelia committed May 7, 2024
1 parent 621c9af commit 72a2ab2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/eth-rpc-cache/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ export class JsonRpcError extends Error {

export const errors = {
internalServerError: (err: Error) =>
new JsonRpcError(
err?.message && err.message !== '' ? err.message : 'Internal error',
-32603
),
new JsonRpcError(err?.message || 'Internal error', -32603),
methodNotFound: () => new JsonRpcError('Method not found', -32601)
}

0 comments on commit 72a2ab2

Please sign in to comment.