Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
Fix order of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Feb 16, 2017
1 parent 1e1b829 commit 54e8092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ Inquirer.prompt([
}
});
} else if (response.statusCode === 403) {
if (_.get('error', jsonBody) === 'token_invalid') {
if (_.get(jsonBody, 'error') === 'token_invalid') {
console.error('The token you used is invalid.');
} else if (_.get('error', jsonBody) === 'token_expired') {
} else if (_.get(jsonBody, 'error') === 'token_expired') {
console.error('The token provided is expired.');
} else {
console.error('An unknown error occured!', body);
Expand Down

0 comments on commit 54e8092

Please sign in to comment.