diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-30 07:56:36 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-30 07:56:36 +0300 |
commit | 307d5136d4e4eeee20591578bed237f58addab95 (patch) | |
tree | f936f2130c5418dd89497c8e3822bbbb1236ac61 /telegram/utils.go | |
parent | 536451f648bce43aa34e90a9154adf831027dae7 (diff) |
Verbose errors for message formatting failures
Diffstat (limited to 'telegram/utils.go')
-rw-r--r-- | telegram/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/utils.go b/telegram/utils.go index 0a0a3fc..b3e815f 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -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()) } } |