Verbose errors for message formatting failures

This commit is contained in:
bodqhrohro 2019-12-30 06:56:36 +02:00
parent 536451f648
commit 307d5136d4

View file

@ -221,7 +221,7 @@ func (c *Client) formatMessage(chatID int64, messageID int64, preview bool, mess
MessageId: messageID,
})
if err != nil {
return "<error fetching message>"
return fmt.Sprintf("<error fetching message: %s>", err.Error())
}
}