From: Chris Duncan Date: Tue, 4 Aug 2026 06:39:44 +0000 (-0700) Subject: Log cause of RPC failure. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=9f2c566ed8f0e9436a7c599d5a321d2a783378fc;p=libnemo.git Log cause of RPC failure. --- 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