cli_util: avoid exit() in handle_command_result()

We try to keep the calls to `exit()` in one place. I seem to just have
missed this case in an earlier cleanup.
This commit is contained in:
Martin von Zweigbergk 2022-11-01 17:20:09 -07:00 committed by Martin von Zweigbergk
parent de1dc4ca13
commit 66838cd532

View file

@ -1369,7 +1369,7 @@ pub fn handle_command_result(ui: &mut Ui, result: Result<(), CommandError>) -> i
}
}
}
Err(CommandError::BrokenPipe) => std::process::exit(3),
Err(CommandError::BrokenPipe) => 3,
Err(CommandError::InternalError(message)) => {
ui.write_error(&format!("Internal error: {}\n", message))
.unwrap();