tidy up the error output in the case that we fail with an error
This commit is contained in:
1 parent
4e1cfe01a8
commit
9d8e664ec0
1 file changed
+3
-4
+3
-4
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user