diff --git a/src/lib.rs b/src/lib.rs index 8499cad76..5142133a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -190,8 +190,7 @@ pub fn consumer( ItemType::Path((stem, gcno_path)) => { // GCC if let Err(e) = run_gcov(&gcno_path, branch_enabled, working_dir) { - error!("Error when running gcov: {}", e); - continue; + panic!("Error when running gcov: {}", e); }; let gcov_ext = get_gcov_output_ext(); let gcov_path = @@ -267,19 +266,16 @@ pub fn consumer( } } ItemType::Content(_) => { - error!("Invalid content type"); - continue; + panic!("Invalid content type"); } ItemType::Paths(_) => { - error!("Invalid content type"); - continue; + panic!("Invalid content type"); } } } ItemFormat::Profraw => { if binary_path.is_none() { - error!("The path to the compiled binary must be given as an argument when source-based coverage is used"); - continue; + panic!("The path to the compiled binary must be given as an argument when source-based coverage is used"); } if let ItemType::Paths(profraw_paths) = work_item.item { @@ -301,13 +297,11 @@ pub fn consumer( new_results } Err(e) => { - error!("Error while executing llvm tools: {}", e); - continue; + panic!("Error while executing llvm tools: {}", e); } } } else { - error!("Invalid content type"); - continue; + panic!("Invalid content type"); } } ItemFormat::Info | ItemFormat::JacocoXml => { @@ -319,8 +313,7 @@ pub fn consumer( try_parse!(parse_jacoco_xml_report(buffer), work_item.name) } } else { - error!("Invalid content type"); - continue; + panic!("Invalid content type"); } } };