diff --git a/src/pipeline.rs b/src/pipeline.rs index 0a79ba4..4e6214d 100644 --- a/src/pipeline.rs +++ b/src/pipeline.rs @@ -253,7 +253,11 @@ fn build_models(paths: &[PathBuf]) -> Result> { 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);