summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/errors.ts
diff options
context:
space:
mode:
authorLevente Kurusa <lkurusa@kernelstuff.org>2023-05-10 12:30:02 +0200
committerGitHub <noreply@github.com>2023-05-10 12:30:02 +0200
commit3dc745c881c43b9df4aa895291b9e13186be3f17 (patch)
treeee472fa0c342be4e77cc93804ed3b8f594b0bb1c /ext/node/polyfills/internal/errors.ts
parent50618fc0bc09ba343a9b143e60f4a9bab1ab2522 (diff)
chore(node/stream): unbundle/unminify readable-streams (#19045)
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 {