From 07c39b3178b8637099d1ee94dff41d16f8097352 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Dec 2023 12:37:28 -0400 Subject: html: stack trace layer for Template content compute --- src/util/html.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/util/html.js') diff --git a/src/util/html.js b/src/util/html.js index ba31173d..95c5e45b 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -1068,7 +1068,13 @@ export class Template { slots[slotName] = this.getSlotValue(slotName); } - return this.description.content(slots); + try { + return this.description.content(slots); + } catch (caughtError) { + throw new Error( + `Error computing content of ${inspect(this, {compact: true})}`, + {cause: caughtError}); + } } set description(_value) { -- cgit 1.3.0-6-gf8a5