mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
Try to fix err handle
This commit is contained in:
@@ -130,9 +130,7 @@ pub fn read_file(path: String) -> String {
|
||||
|
||||
let mut file = match fs::File::open(path_buf) {
|
||||
Ok(file) => file,
|
||||
Err(e) => {
|
||||
// Send back error for handling by the caller
|
||||
return null;
|
||||
Err(e) => { return Err(e) // Send back error for handling by the caller
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user