Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update index.js: Message fix (-'both' for plural, only one is required).

The clipboard strikes back :D
  • Loading branch information...
commit 5db2a98b9fc526a291a1bfbd8f841acb5343e0ce 1 parent 78faaee
@Krinkle Krinkle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -372,7 +372,7 @@ var Client = module.exports = function(config) {
if (options.type == "basic" && (!options.username || !options.password))
throw new Error("Basic authentication requires both a username and password to be set");
if (options.type == "oauth" && !options.token)
- throw new Error("OAuth2 authentication requires both a token to be set");
+ throw new Error("OAuth2 authentication requires a token to be set");
this.auth = options;
};
Please sign in to comment.
Something went wrong with that request. Please try again.