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!)
This commit is contained in:
John Doty 2023-11-25 07:33:44 -08:00
parent 9671da9750
commit 519b7bc415

View file

@ -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);
}