diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-10 15:18:27 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-10 15:18:27 +0200 |
commit | 4462a2f53d5153d97691af72ed7a52f401ab6ef7 (patch) | |
tree | ca6de62ecef52aff4bfa79597a64316751d78555 /src-tauri/src/main.rs | |
parent | acecd7f7ee551de0983378c09c540ac3ef2396fe (diff) | |
download | FlightCore-4462a2f53d5153d97691af72ed7a52f401ab6ef7.tar.gz FlightCore-4462a2f53d5153d97691af72ed7a52f401ab6ef7.zip |
Return error result type if NS install fails
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<bool, String> { println!("Running"); match install_northstar(&game_path).await { - Ok(_) => true, + Ok(_) => Ok(true), Err(err) => { println!("{}", err); - false + Err(err.to_string()) } } } |