Verbose errors for message formatting failures
This commit is contained in:
parent
536451f648
commit
307d5136d4
|
@ -221,7 +221,7 @@ func (c *Client) formatMessage(chatID int64, messageID int64, preview bool, mess
|
||||||
MessageId: messageID,
|
MessageId: messageID,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "<error fetching message>"
|
return fmt.Sprintf("<error fetching message: %s>", err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue