From d49fdacf2a3466a310e306e8dbae68db60cc4b68 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sun, 26 Feb 2023 02:10:55 -0700 Subject: [PATCH] Error handle fix --- src-tauri/src/file_helpers.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();