Improve error formatting of parse and ast-to-ir errors

Signed-off-by: Olivier <olivier@librepush.net>
This commit is contained in:
Olivier 'reivilibre' 2024-06-19 23:51:24 +01:00
parent dd74768ec6
commit b6181eb204
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ pub enum InterpreterError<LE: Debug + Clone, OE: Debug> {
#[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}")]