Skip to content

Commit 157ed02

Browse files
fix(compile): show full error chain in batch compile output (#411)
When compiling all pipelines, errors were printed with Display format ({}) which only showed the outermost anyhow context ('Failed to parse YAML front matter'). The underlying serde error with the specific unknown field name was swallowed. Switch to alternate Display format ({:#}) which prints the full error chain, so users see the specific parse failure (e.g. 'unknown field \safeoutputs\, expected one of \ ame\, \description\, ...'). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f281da3 commit 157ed02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compile/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ pub async fn compile_all_pipelines(skip_integrity: bool, debug_pipeline: bool) -
243243
Ok(()) => success_count += 1,
244244
Err(e) => {
245245
eprintln!(
246-
" Error compiling '{}': {}",
246+
" Error compiling '{}': {:#}",
247247
pipeline.source, e
248248
);
249249
fail_count += 1;

0 commit comments

Comments
 (0)