From 2e57476fbbed240d9636561a05e53d454f232aa0 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Fri, 16 Jul 2021 00:28:14 +0800 Subject: fix(cli): return error from `coverage_command` (#11411) --- cli/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli') 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( -- cgit v1.2.3