« get me outta code hell

test: html.template slot value errors - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-09 20:38:38 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-09 20:38:38 -0300
commitb8394a89d31da72ef7d2086a1088a29e68df4edc (patch)
tree8142fbdd5aa5d86139189b2ee4357614b2474f70 /src
parent36ca344e24bbca16426348c23ba7894f671e18c9 (diff)
test: html.template slot value errors
Diffstat (limited to 'src')
-rw-r--r--src/util/html.js4
1 files changed, 2 insertions, 2 deletions
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}`);
           }
         }
       }