From a9f8719cd2f2b3a80b353a91090adbedbae62043 Mon Sep 17 00:00:00 2001 From: Yurii Chukhlib Date: Fri, 9 Jan 2026 22:39:52 +0100 Subject: [PATCH] fix(web): remove provider name from gateway listener error messages Error messages in sendMessageWhatsApp, sendReactionWhatsApp, and sendPollWhatsApp included hardcoded \"WhatsApp\" references. This caused confusion when cron jobs using other providers (e.g., Telegram) failed with errors mentioning WhatsApp. Changes error messages to be provider-agnostic while maintaining the same error handling behavior. Fixes #461 Fixes #470 Co-Authored-By: Claude --- src/web/outbound.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/outbound.ts b/src/web/outbound.ts index 6c6235dbd..e5e400036 100644 --- a/src/web/outbound.ts +++ b/src/web/outbound.ts @@ -29,7 +29,7 @@ export async function sendMessageWhatsApp( const active = getActiveWebListener(options.accountId); if (!active) { throw new Error( - "No active gateway listener. Start the gateway before sending WhatsApp messages.", + "No active gateway listener. Start the gateway before sending messages.", ); } const logger = getChildLogger({ @@ -111,7 +111,7 @@ export async function sendReactionWhatsApp( const active = getActiveWebListener(options.accountId); if (!active) { throw new Error( - "No active gateway listener. Start the gateway before sending WhatsApp reactions.", + "No active gateway listener. Start the gateway before sending reactions.", ); } const logger = getChildLogger({ @@ -152,7 +152,7 @@ export async function sendPollWhatsApp( const active = getActiveWebListener(options.accountId); if (!active) { throw new Error( - "No active gateway listener. Start the gateway before sending WhatsApp polls.", + "No active gateway listener. Start the gateway before sending polls.", ); } const logger = getChildLogger({