From 4462a2f53d5153d97691af72ed7a52f401ab6ef7 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Sat, 10 Sep 2022 15:18:27 +0200 Subject: Return error result type if NS install fails --- src-tauri/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-tauri/src') diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 733da602..60b434fc 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -161,13 +161,13 @@ fn get_host_os() -> String { #[tauri::command] /// Installs Northstar to the given path -async fn install_northstar_caller(game_path: String) -> bool { +async fn install_northstar_caller(game_path: String) -> Result { println!("Running"); match install_northstar(&game_path).await { - Ok(_) => true, + Ok(_) => Ok(true), Err(err) => { println!("{}", err); - false + Err(err.to_string()) } } } -- cgit v1.2.3