@@ -189,8 +189,7 @@ pub fn consumer(
189
189
ItemType :: Path ( ( stem, gcno_path) ) => {
190
190
// GCC
191
191
if let Err ( e) = run_gcov ( & gcno_path, branch_enabled, working_dir) {
192
- error ! ( "Error when running gcov: {}" , e) ;
193
- continue ;
192
+ panic ! ( "Error when running gcov: {}" , e) ;
194
193
} ;
195
194
let gcov_ext = get_gcov_output_ext ( ) ;
196
195
let gcov_path =
@@ -266,19 +265,16 @@ pub fn consumer(
266
265
}
267
266
}
268
267
ItemType :: Content ( _) => {
269
- error ! ( "Invalid content type" ) ;
270
- continue ;
268
+ panic ! ( "Invalid content type" ) ;
271
269
}
272
270
ItemType :: Paths ( _) => {
273
- error ! ( "Invalid content type" ) ;
274
- continue ;
271
+ panic ! ( "Invalid content type" ) ;
275
272
}
276
273
}
277
274
}
278
275
ItemFormat :: Profraw => {
279
276
if binary_path. is_none ( ) {
280
- error ! ( "The path to the compiled binary must be given as an argument when source-based coverage is used" ) ;
281
- continue ;
277
+ panic ! ( "The path to the compiled binary must be given as an argument when source-based coverage is used" ) ;
282
278
}
283
279
284
280
if let ItemType :: Paths ( profraw_paths) = work_item. item {
@@ -300,13 +296,11 @@ pub fn consumer(
300
296
new_results
301
297
}
302
298
Err ( e) => {
303
- error ! ( "Error while executing llvm tools: {}" , e) ;
304
- continue ;
299
+ panic ! ( "Error while executing llvm tools: {}" , e) ;
305
300
}
306
301
}
307
302
} else {
308
- error ! ( "Invalid content type" ) ;
309
- continue ;
303
+ panic ! ( "Invalid content type" ) ;
310
304
}
311
305
}
312
306
ItemFormat :: Info | ItemFormat :: JacocoXml => {
@@ -318,8 +312,7 @@ pub fn consumer(
318
312
try_parse ! ( parse_jacoco_xml_report( buffer) , work_item. name)
319
313
}
320
314
} else {
321
- error ! ( "Invalid content type" ) ;
322
- continue ;
315
+ panic ! ( "Invalid content type" ) ;
323
316
}
324
317
}
325
318
} ;
0 commit comments