Skip to content

Commit 963e4db

Browse files
authored
Fix argument name in error message
The error message was referring to the `path` argument being not a string while it was the `request` argument being not a string.
1 parent b6468e0 commit 963e4db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class Resolver {
263263
if (typeof path !== "string")
264264
return callback(new Error("path argument is not a string"));
265265
if (typeof request !== "string")
266-
return callback(new Error("path argument is not a string"));
266+
return callback(new Error("request argument is not a string"));
267267
if (!resolveContext)
268268
return callback(new Error("resolveContext argument is not set"));
269269

0 commit comments

Comments
 (0)