From: Chris Duncan Date: Mon, 3 Aug 2026 18:20:32 +0000 (-0700) Subject: Rethrow instead of swallowing RPC errors. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=a6a3fe74138308c2eb0b0456067b5a9e91c048d5;p=libnemo.git Rethrow instead of swallowing RPC errors. --- 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) }