summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/browser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browser.rs b/src/browser.rs
index 4c06aeb..9846841 100644
--- a/src/browser.rs
+++ b/src/browser.rs
@@ -6,8 +6,8 @@ use thirtyfour::{FirefoxCapabilities, WebDriver, WebDriverCommands};
pub async fn init() -> WebDriver {
let driver = match WebDriver::new("http://localhost:4444", FirefoxCapabilities::new()).await {
Ok(driver) => driver,
- Err(e) => {
- panic!(e);
+ Err(_) => {
+ panic!("Firefox can't be opened");
}
};