From 9f2c566ed8f0e9436a7c599d5a321d2a783378fc Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 3 Aug 2026 23:39:44 -0700 Subject: [PATCH] Log cause of RPC failure. --- src/lib/rpc/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/rpc/index.ts b/src/lib/rpc/index.ts index 2d1c1f4..27edc3f 100644 --- a/src/lib/rpc/index.ts +++ b/src/lib/rpc/index.ts @@ -47,7 +47,7 @@ export class Rpc { } const body = (data as Record) ?? {} if ('action' in body && (typeof body.action !== 'string' || body.action.toLowerCase() !== action)) { - throw new RangeError(`RPC post data contains 'action' property and does not match 'action' parameter argument. Do not include 'action' in request data.`) + throw new RangeError(`RPC post data contains 'action' property and does not match 'action' parameter argument. Do not include 'action' in request data.`, { cause: body }) } body.action = action -- 2.52.0