From db0e4ba8c5d290160411e7be889609bb41bef174 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 8 Oct 2016 21:57:03 +0200 Subject: Add error message about non-existing channels (slack) --- gateway/samechannel/samechannel.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gateway/samechannel') diff --git a/gateway/samechannel/samechannel.go b/gateway/samechannel/samechannel.go index c7b3d624..5cdd59ae 100644 --- a/gateway/samechannel/samechannel.go +++ b/gateway/samechannel/samechannel.go @@ -60,7 +60,10 @@ func (gw *SameChannelGateway) handleMessage(msg config.Message, dest bridge.Brid } gw.modifyMessage(&msg, dest) log.Debugf("Sending %#v from %s to %s", msg, msg.FullOrigin, dest.FullOrigin()) - dest.Send(msg) + err := dest.Send(msg) + if err != nil { + log.Error(err) + } } func setNickFormat(msg *config.Message, format string) { -- cgit v1.2.3