aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index bd1aa2d8..34caddc7 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -63,12 +63,12 @@ fn main() {
#[tauri::command]
/// Wrapper for `find_game_install_location` as tauri doesn't allow passing `Result<>` types to front-end
-fn find_game_install_location_caller() -> String {
+fn find_game_install_location_caller() -> Result<String, String> {
match find_game_install_location() {
- Ok((path, install_type)) => path,
+ Ok((path, install_type)) => Ok(path),
Err(err) => {
println!("{}", err);
- "".to_string()
+ Err(err.to_string())
}
}
}