1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-25 14:22:54 +02:00

ripgrep: use exit code 2 to indicate error

Exit code 1 was shared to indicate both "no results" and "error." Use
status code 2 to indicate errors, similar to grep's behavior.

Fixes #948 

PR #954
This commit is contained in:
Jon Surrell
2018-06-19 13:41:44 +02:00
committed by Andrew Gallant
parent 223d7d9846
commit ca23a170f7
3 changed files with 59 additions and 10 deletions

View File

@ -60,7 +60,7 @@ fn main() {
Ok(_) => process::exit(0),
Err(err) => {
eprintln!("{}", err);
process::exit(1);
process::exit(2);
}
}
}