diff options
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 c7395fb..282a52d 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) { |