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:
parent
9671da9750
commit
519b7bc415
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue