Skip to content

Commit

Permalink
Clearer error on bad token file (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
itowlson authored Sep 9, 2021
1 parent 95b0c66 commit 9edc12b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/client/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ async fn run() -> std::result::Result<(), ClientError> {
PickYourAuth::None(NoToken)
}
}
Err(e) => return Err(e),
Err(e) => {
let message = format!("Error loading token file {:?}: {}", &token_file, e);
return Err(ClientError::InvalidConfig(message));
}
}
} else {
PickYourAuth::None(NoToken)
Expand Down

0 comments on commit 9edc12b

Please sign in to comment.