Panic if the login fails

This commit is contained in:
Paul van Tilburg 2020-10-10 21:13:49 +02:00
parent 1498c4f671
commit 991b98f5f1
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ async fn update_loop(mut rx: Receiver<()>) -> Result<()> {
let driver = WebDriver::new(&format!("http://localhost:{}", GECKO_DRIVER_PORT), &caps).await?;
// Go to the My Autarco site and login
login(&driver).await?;
login(&driver).await.expect("Failed to log in");
let mut last_updated = 0;
loop {