log refresh token errors

Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-04-05 20:53:47 -04:00
parent fd6ac469a6
commit 3a4827c887
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ pub struct Config {
async fn patrons() -> Result<Option<patreon::Users>> {
let mut cli = patreon::Client::new()?;
let _ = cli.refresh_token().await;
if let Err(why) = cli.refresh_token().await {
error!("error getting refresh token: {}", why);
}
match cli.campaign().await {
Ok(camp) => {