From a6cbb21bd2959d14b23a76bad5fe62e93662e202 Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Thu, 9 Jan 2020 15:10:43 +0100 Subject: [PATCH] Actually include error in error message --- botcommands/whapp-bridge.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/botcommands/whapp-bridge.go b/botcommands/whapp-bridge.go index 6ce0031..518fd53 100644 --- a/botcommands/whapp-bridge.go +++ b/botcommands/whapp-bridge.go @@ -75,9 +75,10 @@ func (b *WhappBridge) Execute( c.SendTextMessage( b.UserChatID, fmt.Sprintf( - "Error sending message to %s. Message contents: %s", - JID, + "Error sending message to %s. \nMessage contents: %s\nError: %s", + *JID, m.GetText(), + err.Error(), ), ) }