simplify error logging in main
This commit is contained in:
1 parent
3057befa5d
commit
185e72b1fe
1 file changed
+1
-3
+1
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user