From b6181eb204e7dd1287575ad815a2a1a671c45522 Mon Sep 17 00:00:00 2001 From: Olivier Date: Wed, 19 Jun 2024 23:51:24 +0100 Subject: [PATCH] Improve error formatting of parse and ast-to-ir errors Signed-off-by: Olivier --- hornbeam_interpreter/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hornbeam_interpreter/src/lib.rs b/hornbeam_interpreter/src/lib.rs index 73890e1..094eb64 100644 --- a/hornbeam_interpreter/src/lib.rs +++ b/hornbeam_interpreter/src/lib.rs @@ -27,10 +27,10 @@ pub enum InterpreterError { #[error("failed to write to output: {underlying:?}")] OutputError { underlying: OE }, - #[error("failed to parse template: ")] + #[error("failed to parse template: {0}")] ParseError(#[from] ParseError), - #[error("failed to process parsed template: ")] + #[error("failed to process parsed template: {0}")] AstToIrError(#[from] AstToIrError), #[error("error finding templates to load: {0}")]