diff options
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r-- | src-tauri/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 27019361..ee3c91ed 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1,6 +1,7 @@ use std::env; use anyhow::{anyhow, Context, Result}; +use sentry::{add_breadcrumb, Breadcrumb, Level}; mod northstar; @@ -230,6 +231,14 @@ pub async fn install_northstar( .ok_or_else(|| panic!("Couldn't find Northstar on thunderstore???")) .unwrap(); + // Breadcrumb for sentry to debug crash + add_breadcrumb(Breadcrumb { + // category: Some("auth".into()), + message: Some(format!("Install path \"{}\"", game_path)), + level: Level::Info, + ..Default::default() + }); + do_install( nmod.versions.get(&nmod.latest).unwrap(), std::path::Path::new(game_path), |