diff --git a/src-tauri/src/file_helpers.rs b/src-tauri/src/file_helpers.rs index 35c1ce0..d33a0af 100644 --- a/src-tauri/src/file_helpers.rs +++ b/src-tauri/src/file_helpers.rs @@ -130,8 +130,7 @@ pub fn read_file(path: String) -> String { let mut file = match fs::File::open(path_buf) { Ok(file) => file, - Err(e) => { return Err(e) // Send back error for handling by the caller - } + Err(e) => return String.from::(""); // Send back error for handling by the caller }; let mut contents = String::new();