diff --git a/src/environment.ts b/src/environment.ts index 4df542e..45b6559 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -324,7 +324,7 @@ export class Environment { const [line, column, code] = errorLine(source, position); return new Error( - `Error in the template ${path}:${line}:${column}\n\n${code.trim()}\n\n> ${cause.message}\n`, + `Error in the template ${path}:${line}:${column}\n\n${code.trim()}\n\n${cause.message.replaceAll(/^/gm, '> ')}\n`, { cause }, ); }