Update dependencies
[valheim_web.git] / backend / build.rs
index 0d6baba..012f651 100644 (file)
@@ -28,7 +28,7 @@ fn main() {
 
     // Create static directory if it doesn't exist.
     if !Path::new("static").exists() {
-        std::fs::create_dir("static");
+        std::fs::create_dir("static").unwrap();
     }
 
     let output =
@@ -41,6 +41,6 @@ fn main() {
     if !output.status.success() {
         // SASS will put the error in the file.
         let error = std::fs::read_to_string("./static/style.css").expect("unable to read style.css");
-        panic!(error);
+        panic!("Error from SASS: {}", error);
     }
 }