From ca9db96131d056dbff0fb7f1e1acec8d57486f87 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Wed, 14 Sep 2022 18:37:34 +0200 Subject: Show error message in panic --- src-tauri/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-tauri/src') diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index fd171468..85b0fa3d 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -129,7 +129,7 @@ async fn check_is_northstar_outdated(game_path: String) -> Result let nmod = index .iter() .find(|f| f.name.to_lowercase() == "northstar") - .unwrap(); + .expect("Couldn't find Northstar on thunderstore???"); // .ok_or_else(|| anyhow!("Couldn't find Northstar on thunderstore???"))?; dbg!(nmod); -- cgit v1.2.3