From b8394a89d31da72ef7d2086a1088a29e68df4edc Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 9 Apr 2023 20:38:38 -0300 Subject: test: html.template slot value errors --- src/util/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/util/html.js b/src/util/html.js index 818c5804..65a06440 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -666,11 +666,11 @@ export class Template { const {type} = description; if (type === 'html') { if (!isHTML(value)) { - throw new TypeError(`Slot expects html (tag, template or blank), got ${value}`); + throw new TypeError(`Slot expects html (tag, template or blank), got ${typeof value}`); } } else { if (typeof value !== type) { - throw new TypeError(`Slot expects ${type}, got ${value}`); + throw new TypeError(`Slot expects ${type}, got ${typeof value}`); } } } -- cgit 1.3.0-6-gf8a5