mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[twitch] Fix: Log correct error when wiping token fails
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e1f11a6c98
commit
1515536746
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ func (c *Client) RefreshToken() error {
|
|||
c.UpdateToken("", "")
|
||||
if c.tokenUpdateHook != nil {
|
||||
if herr := c.tokenUpdateHook("", ""); herr != nil {
|
||||
log.WithError(err).Error("Unable to store token wipe after refresh failure")
|
||||
log.WithError(herr).Error("Unable to store token wipe after refresh failure")
|
||||
}
|
||||
}
|
||||
return errors.Wrap(err, "executing request")
|
||||
|
|
Loading…
Reference in a new issue