From 184d3a435ced59c9e3c4573e339b975af1127667 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 17 Feb 2025 22:47:39 -0800 Subject: return quota exceeded error --- lib/nwc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nwc.ts b/lib/nwc.ts index 1f3e7444..aa69ae75 100644 --- a/lib/nwc.ts +++ b/lib/nwc.ts @@ -134,7 +134,7 @@ const handle = (method, params, ev, app, user) => if (spent + amount > max_amount) { warn("budget exceeded", pubkey, user?.username, spent, amount, max_amount); return error({ - code: "INTERNAL", + code: "QUOTA_EXCEEDED", message: `Budget exceeded: ${spent + amount} of ${max_amount}`, }); } -- cgit v1.2.3