1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

tidy up the error output in the case that we fail with an error

This commit is contained in:
Wez Furlong 2019-11-22 20:32:03 -08:00
parent 4e1cfe01a8
commit 9d8e664ec0

View File

@ -593,12 +593,11 @@ fn run_terminal_gui(config: Arc<config::Config>, opts: &StartCommand) -> Fallibl
gui.run_forever()
}
fn main() -> Result<(), Error> {
let result = run();
if let Err(e) = &result {
fn main() {
if let Err(e) = run() {
log::error!("{}", e);
std::process::exit(1);
}
result
}
fn run() -> Result<(), Error> {