mirror of
https://github.com/martinvonz/jj.git
synced 2024-10-23 23:10:01 +00:00
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:
parent
de1dc4ca13
commit
66838cd532
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue