summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/errors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/errors.ts')
-rw-r--r--ext/node/polyfills/internal/errors.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal/errors.ts b/ext/node/polyfills/internal/errors.ts
index 1894d8e24..44aba4d16 100644
--- a/ext/node/polyfills/internal/errors.ts
+++ b/ext/node/polyfills/internal/errors.ts
@@ -13,7 +13,7 @@
* ERR_INVALID_PACKAGE_CONFIG // package.json stuff, probably useless
*/
-import { inspect } from "ext:deno_node/internal/util/inspect.mjs";
+import { format, inspect } from "ext:deno_node/internal/util/inspect.mjs";
import { codes } from "ext:deno_node/internal/error_codes.ts";
import {
codeMap,
@@ -2065,7 +2065,7 @@ export class ERR_UNKNOWN_CREDENTIAL extends NodeError {
}
export class ERR_UNKNOWN_ENCODING extends NodeTypeError {
constructor(x: string) {
- super("ERR_UNKNOWN_ENCODING", `Unknown encoding: ${x}`);
+ super("ERR_UNKNOWN_ENCODING", format("Unknown encoding: %s", x));
}
}
export class ERR_UNKNOWN_FILE_EXTENSION extends NodeTypeError {