diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-08-04 18:09:12 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-08-04 18:09:12 +0200 |
commit | 51ea2896cdcdf7b6027f96421a0ce2b454486e03 (patch) | |
tree | 22eaae83fd2655cad9bc477bc59ce3fb92539788 /src/main.rs | |
parent | 7c445e6458b6b209ce59ed89dbb73daa96e2199f (diff) |
docs: init adds
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 270af8e..c038a9b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,13 +17,16 @@ async fn main() -> Result<(), Box<dyn Error>> { let config = Config::from_env().unwrap(); unsafe { + // Open the browser browser::init(&config.driver_url).await; + // Login using the credentials inside the `config` match browser::login(&config).await { Ok(_) => { log::info!("Logged in Smartedu"); } Err(e) => { + // Using the bot when the user is not logged in, is simply useless. panic!("You can't connect: `{}`, credentials are {:?}", e, config); } } |