[twitch] Fix: Log correct error when wiping token fails

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-12-13 23:31:06 +01:00
parent e1f11a6c98
commit 1515536746
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -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")