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

This commit is contained in:
Wez Furlong committed 2019-11-22 20:32:03 -08:00
1 parent 4e1cfe01a8
commit 9d8e664ec0
1 file changed
+3 -4
+3 -4
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> {