gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 227Rust 7TOML 3CSS 1307 Definiciones

Improve error message when missing chromedriver (#147)

51602fb4e962ea56f749cfcb23ac55efca54249d · por Andreas Weibye · (hace 4 años) · padre d01eeab24 · ver el árbol en este commit

Delta semántico · 1

scripts/gentest/src/main.rs

  • cambió por dentro fn main

1 archivos · +4 −1

diff --git a/scripts/gentest/src/main.rs b/scripts/gentest/src/main.rs
index 7019b5a67..ba68cc12a 100644
--- a/scripts/gentest/src/main.rs
+++ b/scripts/gentest/src/main.rs
@@ -34,7 +34,10 @@ async fn main() {
 
     info!("starting webdriver instance");
     let webdriver_url = "http://localhost:4444";
-    let mut webdriver_handle = Command::new("chromedriver").arg("--port=4444").spawn().unwrap();
+    let mut webdriver_handle = Command::new("chromedriver")
+        .arg("--port=4444")
+        .spawn()
+        .expect("ChromeDriver not found: Make sure you have it installed and added to your PATH.");
 
     // this is silly, but it works
     std::thread::sleep(std::time::Duration::from_secs(1));