From 40d0e793583a6921aedf62f5f582939417e7df06 Mon Sep 17 00:00:00 2001 From: tone Date: Fri, 28 Nov 2025 13:35:03 +0800 Subject: [PATCH] feat: add error reason to RPCError in callRequest method --- src/core/RPCSession.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/RPCSession.ts b/src/core/RPCSession.ts index a099c80..8c66044 100644 --- a/src/core/RPCSession.ts +++ b/src/core/RPCSession.ts @@ -242,6 +242,7 @@ export class RPCSession { reject(new RPCError({ errorCode: RPCErrorCode.UNKNOWN_ERROR, + reason: e instanceof Error ? e.message : `${e}` })) }) }