diff options
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 |
commit | 411c053dc4b314b2bc0d58d3899fd796ad0054c2 (patch) | |
tree | 5e84c2bfc0609861ae4fb8d4dbf4f758030bbe2c /src/util/html.js | |
parent | 518647f8b80ffda6d502b1a75656da7f2ae4b9d3 (diff) |
data, util: use typeAppearance in more places
Diffstat (limited to 'src/util/html.js')
-rw-r--r-- | src/util/html.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/html.js b/src/util/html.js index c7395fbf..282a52da 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -2,7 +2,7 @@ import {inspect} from 'node:util'; -import {empty} from '#sugar'; +import {empty, typeAppearance} from '#sugar'; import * as commonValidators from '#validators'; // COMPREHENSIVE! @@ -633,7 +633,7 @@ export class Template { static validateDescription(description) { if (typeof description !== 'object') { - throw new TypeError(`Expected object, got ${typeof description}`); + throw new TypeError(`Expected object, got ${typeAppearance(description)}`); } if (description === null) { |