« get me outta code hell

data, util: use typeAppearance in more places - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/replacer.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-28 14:11:02 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-28 14:11:02 -0300
commit411c053dc4b314b2bc0d58d3899fd796ad0054c2 (patch)
tree5e84c2bfc0609861ae4fb8d4dbf4f758030bbe2c /src/util/replacer.js
parent518647f8b80ffda6d502b1a75656da7f2ae4b9d3 (diff)
data, util: use typeAppearance in more places
Diffstat (limited to 'src/util/replacer.js')
-rw-r--r--src/util/replacer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js
index 647d1f0..095ee06 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -6,7 +6,7 @@
 // for embedding in a wiki webpage.
 
 import * as html from '#html';
-import {escapeRegex} from '#sugar';
+import {escapeRegex, typeAppearance} from '#sugar';
 
 // Syntax literals.
 const tagBeginning = '[[';
@@ -407,7 +407,7 @@ export function postprocessHeadings(inputNodes) {
 
 export function parseInput(input) {
   if (typeof input !== 'string') {
-    throw new TypeError(`Expected input to be string, got ${input}`);
+    throw new TypeError(`Expected input to be string, got ${typeAppearance(input)}`);
   }
 
   try {