diff --git a/crates/fj-app/src/main.rs b/crates/fj-app/src/main.rs index a252070c8..4551c151b 100644 --- a/crates/fj-app/src/main.rs +++ b/crates/fj-app/src/main.rs @@ -3,7 +3,7 @@ mod config; use std::path::PathBuf; -use anyhow::anyhow; +use anyhow::{anyhow, Context as _}; use fj_export::export; use fj_host::{Model, Parameters}; use fj_operations::shape_processor::ShapeProcessor; @@ -39,7 +39,8 @@ fn main() -> anyhow::Result<()> { })?; path.push(model); - let model = Model::from_path(path, config.target_dir)?; + let model = Model::from_path(path.clone(), config.target_dir) + .with_context(|| format!("Failed to load model: {}", path.display()))?; let parameters = args.parameters.unwrap_or_else(Parameters::empty); let shape_processor = ShapeProcessor {