simplify error logging in main

This commit is contained in:
Wez Furlong committed 2019-11-22 10:55:48 -08:00
1 parent 3057befa5d
commit 185e72b1fe
1 file changed
+1 -3
+1 -3
View File
@@ -596,9 +596,7 @@ fn run_terminal_gui(config: Arc<config::Config>, opts: &StartCommand) -> Fallibl
fn main() -> Result<(), Error> {
let result = run();
if let Err(e) = &result {
let message = e.to_string();
log::error!("{}", message);
log::error!("{}", e);
}
result
}