- Command::new("sass")
- .arg("./style.scss")
- .arg("./static/style.css")
- .output()
- .expect("Unable to compile SASS file, install SASS, see https://sass-lang.com/");
+ let output =
+ Command::new("sass")
+ .arg("./style.scss")
+ .arg("./static/style.css")
+ .output()
+ .expect("Unable to compile SASS file, install SASS, see https://sass-lang.com/");
+
+ if !output.status.success() {
+ //panic!("Unable to compile SASS file, install SASS, see https://sass-lang.com/")
+ let error = std::fs::read_to_string("./static/style.css").expect("unable to read style.css");
+ panic!(error);
+ }