Properly forward message based errors when quitting program
This commit is contained in:
parent
2668dbf305
commit
a4b7736019
1 changed files with 1 additions and 8 deletions
|
@ -30,14 +30,7 @@ pub fn quit_error_msg<S>(err: S) -> !
|
|||
where
|
||||
S: AsRef<str> + Display + Debug + Sync + Send + 'static
|
||||
{
|
||||
// TODO: forward the error the `quit_error` here
|
||||
// quit_error(failure::err_msg(err));
|
||||
|
||||
// Print the error message
|
||||
eprintln!("error: {}", err);
|
||||
|
||||
// Quit
|
||||
exit(1);
|
||||
quit_error(failure::err_msg(err).compat());
|
||||
}
|
||||
|
||||
/// Open the given URL in the users default browser.
|
||||
|
|
Loading…
Add table
Reference in a new issue