Improve logs when failing to parse external descriptor
Showing 1 of 1 files from the diff.
src/lib/descriptor/mod.rs
changed.
@@ -375,7 +375,16 @@
Loading
375 | 375 | ||
376 | 376 | let mut file_config: ExternalConfig = match toml::from_str(&external_descriptor) { |
|
377 | 377 | Ok(value) => value, |
|
378 | - | Err(error) => panic!("Unable to parse external descriptor, {}", error), |
|
378 | + | Err(error) => { |
|
379 | + | error!( |
|
380 | + | "Unable to parse external file: {:#?}, {}", |
|
381 | + | &file_path, error |
|
382 | + | ); |
|
383 | + | panic!( |
|
384 | + | "Unable to parse external file: {:#?}, {}", |
|
385 | + | &file_path, error |
|
386 | + | ); |
|
387 | + | } |
|
379 | 388 | }; |
|
380 | 389 | debug!("Loaded external config: {:#?}", &file_config); |
|
381 | 390 |
Files | Coverage |
---|---|
src | 93.08% |
Project Totals (92 files) | 93.08% |
307913537
307913537
307913537
307913537
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.