summaryrefslogtreecommitdiffstats
path: root/src/user.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/user.rs')
-rw-r--r--src/user.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user.rs b/src/user.rs
index a40de28..661e53a 100644
--- a/src/user.rs
+++ b/src/user.rs
@@ -1,5 +1,5 @@
use clap::{Args, Subcommand};
-use eyre::OptionExt;
+use eyre::{Context, OptionExt};
use forgejo_api::Forgejo;
use crate::{repo::RepoInfo, SpecialRender};
@@ -352,7 +352,7 @@ async fn browse_user(api: &Forgejo, host_url: &url::Url, user: Option<&str>) ->
url.path_segments_mut()
.map_err(|_| eyre::eyre!("invalid host url"))?
.push(&username);
- open::that(url.as_str())?;
+ open::that_detached(url.as_str()).wrap_err("Failed to open URL")?;
Ok(())
}