commit f62468177cbe23a91bc9465073a7050174881eb5
parent ac85036569014196dccf3d4e40b506289ec761b7
Author: Florian Dold <dold@taler.net>
Date: Wed, 22 Jul 2026 00:34:23 +0200
wallet: report a failed mailbox config lookup when sending
Returning an empty result told the caller the message had been sent
although nothing was transmitted. The key lookup and the send itself
already throw.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/mailbox.ts b/packages/taler-wallet-core/src/mailbox.ts
@@ -393,7 +393,7 @@ export async function sendTalerUriMessage(
paddedMessageSize = resConf.body.message_body_bytes;
break;
default:
- return {};
+ throw Error("unable to get mailbox service config");
}
const resKeys = await mailboxClient.getMailboxInfo(
req.contact.mailboxAddress,