mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
[core] Fix: Include username and channel in ban errors
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8e8895d32e
commit
2a64caec09
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ func (c *Client) BanUser(ctx context.Context, channel, username string, duration
|
||||||
return errors.Wrap(err, "encoding payload")
|
return errors.Wrap(err, "encoding payload")
|
||||||
}
|
}
|
||||||
|
|
||||||
return errors.Wrap(
|
return errors.Wrapf(
|
||||||
c.Request(ctx, ClientRequestOpts{
|
c.Request(ctx, ClientRequestOpts{
|
||||||
AuthType: AuthTypeBearerToken,
|
AuthType: AuthTypeBearerToken,
|
||||||
Method: http.MethodPost,
|
Method: http.MethodPost,
|
||||||
|
@ -89,7 +89,7 @@ func (c *Client) BanUser(ctx context.Context, channel, username string, duration
|
||||||
return ValidateStatus(opts, resp)
|
return ValidateStatus(opts, resp)
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
"executing ban request",
|
"executing ban request for %q in %q", username, channel,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue