summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Surrell <jon.surrell@automattic.com>2018-06-19 13:41:44 +0200
committerAndrew Gallant <jamslam@gmail.com>2018-06-19 07:41:44 -0400
commitca23a170f769f59e5bde02a4ab32b54cd2d66165 (patch)
tree19017dc22d4656544be76939c8f940da787572bd /src
parent223d7d9846bff4a9aaf6ba84f5662a1ee7ffa900 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 761348f3..e374338b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -60,7 +60,7 @@ fn main() {
Ok(_) => process::exit(0),
Err(err) => {
eprintln!("{}", err);
- process::exit(1);
+ process::exit(2);
}
}
}