Properly forward message based errors when quitting program

This commit is contained in:
timvisee 2018-03-27 21:19:16 +02:00
parent 2668dbf305
commit a4b7736019
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2

View file

@ -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.