From 519b7bc415a9ea189e4e0fd423971f91cef39f19 Mon Sep 17 00:00:00 2001 From: John Doty Date: Sat, 25 Nov 2023 07:33:44 -0800 Subject: [PATCH] Display the URL we're trying to open when it fails This means that it is not lost forever and you can, I don't know, click it in your terminal window or something. (Thanks @quodlibetor for the patch!) --- src/browse/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/browse/mod.rs b/src/browse/mod.rs index 88348d8..cf83858 100644 --- a/src/browse/mod.rs +++ b/src/browse/mod.rs @@ -11,6 +11,7 @@ use browse_unix::{browse_url_impl, handle_browser_open_impl}; #[inline] pub async fn browse_url(url: &String) { if let Err(e) = browse_url_impl(url).await { + eprintln!("Unable to open {url}"); eprintln!("{}", e); std::process::exit(1); }