mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 17:14:36 +01:00
Add download menu translations
Update download menu formatting Better error logging
This commit is contained in:
@@ -131,8 +131,8 @@ pub fn read_file(path: String) -> String {
|
||||
let mut file = match fs::File::open(path_buf) {
|
||||
Ok(file) => file,
|
||||
Err(e) => {
|
||||
println!("Failed to open file: {}", e);
|
||||
return String::new();
|
||||
// Send back error for handling by the caller
|
||||
return e;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user