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);
}
}
}\r
\r
pub fn format_active_players(&self) -> String {\r
+ /* Commented because the player list isn't correct (the number is).\r
if self.active_players.len() == 0 {\r
String::from("<none>")\r
} else {\r
self.active_players.join(", ")\r
- }\r
+ }*/\r
+ self.active_players.len().to_string()\r
}\r
\r
pub fn format_last_backup(&self) -> String {\r
#[cfg(target_os = "linux")]\r
const STRING_BEFORE_NB_OF_CONNECTIONS: &str = "Connections";\r
\r
+// It doesn't work for the moment, it only scan the connection event and do not treat disconnections.\r
#[cfg(target_os = "linux")]\r
fn get_active_players() -> Vec<String> {\r
let mut journal =\r