Skip to content

Commit

Permalink
if nothing found, just pass back original reqOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Mar 25, 2015
1 parent d6056cc commit 40b2c03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/common/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,11 @@ function makeAuthorizedRequest(config) {
function authorize(reqOpts, callback) {
getAuthClient(function(err, authClient) {
if (err) {
callback(err);
if (err.message.indexOf("Could not load") === 0) {
callback(null, reqOpts);
} else {
callback(err);
}
return;
}

Expand Down

0 comments on commit 40b2c03

Please sign in to comment.