1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

fix(cli): return error from coverage_command (#11411)

This commit is contained in:
Casper Beyer 2021-07-16 00:28:14 +08:00 committed by GitHub
parent 79ac050d29
commit 2e57476fbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(