diff --git a/src/lnurlp.ts b/src/lnurlp.ts index aa974f6..7c5a037 100644 --- a/src/lnurlp.ts +++ b/src/lnurlp.ts @@ -34,7 +34,7 @@ lnurlApp.get("/:username/callback", async (c) => { // TODO: store data (e.g. for zaps) if (!amount) { - throw new Error("No amount provided"); + return c.text('No amount provided', 404); } const connectionSecret = await findWalletConnection(username);