diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 3 |
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( |