From f72c1a333c7c3c98edb1946f3f24f8c20c102786 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 4 Apr 2017 16:43:28 -0600 Subject: [PATCH] red herring strikes again - let's log the correct variable, eh? --- oauth3.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth3.core.js b/oauth3.core.js index 3b31951..d918caf 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -1037,7 +1037,7 @@ } , api: function (providerUri, opts) { if (!OAUTH3.api[opts.api]) { - return OAUTH3.PromiseA.reject(new Error("No API for '" + providerUri + "'")); + return OAUTH3.PromiseA.reject(new Error("No API for '" + opts.api + "'")); } return OAUTH3.api[opts.api](providerUri, opts);