Skip to content

Commit

Permalink
Handle error on launch browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Jul 6, 2021
1 parent f1c2d76 commit 40e5a51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/browser.rs
Expand Up @@ -20,5 +20,8 @@ pub async fn config(timeout: u64) -> (Browser, Handler) {
},
})
.await
.unwrap()
.unwrap_or_else(|err| {
errors::show(format!("Unable to launch browser: {}.", err));
process::exit(1)
})
}

0 comments on commit 40e5a51

Please sign in to comment.