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:
parent
4e1cfe01a8
commit
9d8e664ec0
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user