diff options
author | Wim <wim@42.be> | 2019-02-26 17:21:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 17:21:23 +0100 |
commit | b09a73040f28e65ac7bb5293b4e5c56f7d8e265f (patch) | |
tree | d7ab4e926a3a07388ec2b54e319729d24dd98e2e /bridge/discord/discord.go | |
parent | 740b5f260243bd95ed83c6cfc805543e5d87b5e8 (diff) | |
download | matterbridge-msglm-b09a73040f28e65ac7bb5293b4e5c56f7d8e265f.tar.gz matterbridge-msglm-b09a73040f28e65ac7bb5293b4e5c56f7d8e265f.tar.bz2 matterbridge-msglm-b09a73040f28e65ac7bb5293b4e5c56f7d8e265f.zip |
Print errors as string instead of %#v (#738)
Diffstat (limited to 'bridge/discord/discord.go')
-rw-r--r-- | bridge/discord/discord.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index bc33796c..49dfe4bc 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -246,7 +246,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { b.Log.Debugf("Setting webhook channel to \"%s\"", msg.Channel) _, err := b.c.WebhookEdit(wID, "", "", channelID) if err != nil { - b.Log.Errorf("Could not set webhook channel: %v", err) + b.Log.Errorf("Could not set webhook channel: %s", err) return "", err } } @@ -278,7 +278,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { for _, rmsg := range helper.HandleExtra(&msg, b.General) { rmsg.Text = helper.ClipMessage(rmsg.Text, MessageLength) if _, err := b.c.ChannelMessageSend(channelID, rmsg.Username+rmsg.Text); err != nil { - b.Log.Errorf("Could not send message %#v: %v", rmsg, err) + b.Log.Errorf("Could not send message %#v: %s", rmsg, err) } } // check if we have files to upload (from slack, telegram or mattermost) @@ -360,7 +360,7 @@ func (b *Bdiscord) handleUploadFile(msg *config.Message, channelID string) (stri } _, err = b.c.ChannelMessageSendComplex(channelID, &m) if err != nil { - return "", fmt.Errorf("file upload failed: %#v", err) + return "", fmt.Errorf("file upload failed: %s", err) } } return "", nil |