mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-04 10:51:37 +00:00
cli: use exit code 3 for broken pipe
Since `clap` uses exit code 2 for bad CLI arguments, we should use a different code for broken pipes.
This commit is contained in:
parent
c10247d5df
commit
15070bce5f
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ fn main() {
|
|||
std::process::exit(1);
|
||||
}
|
||||
Err(CommandError::BrokenPipe) => {
|
||||
std::process::exit(2);
|
||||
std::process::exit(3);
|
||||
}
|
||||
Err(CommandError::InternalError(message)) => {
|
||||
ui.write_error(&format!("Internal error: {}\n", message))
|
||||
|
|
Loading…
Reference in a new issue