add instructions for getting the code if there is no token

This commit is contained in:
Sebastian Hugentobler 2017-03-21 17:23:49 +01:00
parent d6dc224a9b
commit 3a07192101
4 changed files with 9 additions and 2 deletions

View file

@ -212,6 +212,8 @@ impl<'a> Gog<'a> {
fn get_code(&self) -> Result<String, GogError> {
let auth_uri = self.auth_uri(self.client_id.as_str(), self.redirect_uri.as_str());
println!("Open the following url in a browser, login to your account and paste the \
resulting code parameter.");
println!("{}", auth_uri);
let mut code = String::new();