summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-07-16 00:28:14 +0800
committerGitHub <noreply@github.com>2021-07-15 18:28:14 +0200
commit2e57476fbbed240d9636561a05e53d454f232aa0 (patch)
tree79cbf9c5189be445f0c218eabcad9d77862073c5 /cli/main.rs
parent79ac050d2917ddc1be97e458c8ac7c6a3d728269 (diff)
fix(cli): return error from `coverage_command` (#11411)
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 217042237..16b2df0e7 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -966,8 +966,7 @@ async fn coverage_command(
lcov: bool,
) -> Result<(), AnyError> {
if files.is_empty() {
- println!("No matching coverage profiles found");
- std::process::exit(1);
+ return Err(generic_error("No matching coverage profiles found"));
}
tools::coverage::cover_files(