From 821eca08346437ccb665ceda40cfabb9d86ae44f Mon Sep 17 00:00:00 2001 From: Noel Forte Date: Sun, 22 Dec 2024 18:29:11 -0500 Subject: [PATCH] patch TemplateError to remove `cause.name` in `message` --- src/errors.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/errors.ts b/src/errors.ts index 633d209..0e12d59 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -14,10 +14,6 @@ export class TemplateError extends VentoBaseError { `Error in template ${path}:${line}:${column}\n\n${code.trim()}\n\n`, { cause }, ); - - if (cause) { - this.message += `(via ${cause.name})\n`; - } } }