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);