Skip to content

Commit

Permalink
patch TemplateError to remove cause.name in message
Browse files Browse the repository at this point in the history
  • Loading branch information
noelforte committed Dec 22, 2024
1 parent 89ca698 commit 821eca0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
}
}

Expand Down

0 comments on commit 821eca0

Please sign in to comment.