Skip to content

Commit

Permalink
Fix argument name in error message
Browse files Browse the repository at this point in the history
The error message was referring to the `path` argument being not a string while it was the `request` argument being not a string.
  • Loading branch information
discordier authored Feb 10, 2022
1 parent b6468e0 commit 963e4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class Resolver {
if (typeof path !== "string")
return callback(new Error("path argument is not a string"));
if (typeof request !== "string")
return callback(new Error("path argument is not a string"));
return callback(new Error("request argument is not a string"));
if (!resolveContext)
return callback(new Error("resolveContext argument is not set"));

Expand Down

0 comments on commit 963e4db

Please sign in to comment.