summaryrefslogtreecommitdiff
path: root/ext/cache/01_cache.js
diff options
context:
space:
mode:
authorIan Bull <irbull@gmail.com>2024-09-04 00:23:19 -0700
committerGitHub <noreply@github.com>2024-09-04 09:23:19 +0200
commitcb454351d497a4387775f3c9d64114cb8b32c08d (patch)
tree252e1dc84de3d3048ae3d98f4713cbdb436c5226 /ext/cache/01_cache.js
parent1ec911f1734b5e7190cc65876c5f03011e592d7e (diff)
refactor(ext): align error messages (#25310)
Diffstat (limited to 'ext/cache/01_cache.js')
-rw-r--r--ext/cache/01_cache.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/cache/01_cache.js b/ext/cache/01_cache.js
index a5bcde598..269261f40 100644
--- a/ext/cache/01_cache.js
+++ b/ext/cache/01_cache.js
@@ -105,7 +105,7 @@ class Cache {
const reqUrl = new URL(innerRequest.url());
if (reqUrl.protocol !== "http:" && reqUrl.protocol !== "https:") {
throw new TypeError(
- "Request url protocol must be 'http:' or 'https:'",
+ `Request url protocol must be 'http:' or 'https:': received '${reqUrl.protocol}'`,
);
}
if (innerRequest.method !== "GET") {