From a6a3fe74138308c2eb0b0456067b5a9e91c048d5 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 3 Aug 2026 11:20:32 -0700 Subject: [PATCH] Rethrow instead of swallowing RPC errors. --- 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 6bfcd6c..bb1881f 100644 --- a/src/lib/rpc/index.ts +++ b/src/lib/rpc/index.ts @@ -75,7 +75,7 @@ export class Rpc { return data } catch (err) { console.error(err) - return JSON.stringify(err) + throw new Error(`RPC ${action} request failed`, { cause: err }) } finally { clearTimeout(kill) } -- 2.52.0