Skip to content

Commit

Permalink
log validation and return report
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Nov 15, 2024
1 parent 6f40a52 commit 5b12ccb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,11 @@ fn build_models(paths: &[PathBuf]) -> Result<DataModel, Box<dyn Error>> {
let first_path = paths.first().unwrap();
path_exists(first_path)?;

let mut model = DataModel::from_markdown(first_path)?;
let mut model = DataModel::from_markdown(first_path)
.map_err(|e| {
e.log_result();
format!("Error parsing markdown content: {:#?}", e)
})?;

if paths.len() == 1 {
return Ok(model);
Expand Down

0 comments on commit 5b12ccb

Please sign in to comment.