aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-30 07:56:36 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-30 07:56:36 +0300
commit307d5136d4e4eeee20591578bed237f58addab95 (patch)
treef936f2130c5418dd89497c8e3822bbbb1236ac61
parent536451f648bce43aa34e90a9154adf831027dae7 (diff)
Verbose errors for message formatting failures
-rw-r--r--telegram/utils.go2
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())
}
}