Skip to content

Commit

Permalink
Merge pull request #35 from firebase/v1.1.4
Browse files Browse the repository at this point in the history
v1.1.4
  • Loading branch information
Chris Raynor committed Oct 26, 2014
2 parents ffa30bc + d984cf0 commit e388c23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,16 @@ var auth = {
this.token = token;
this.saveConfig(callback);
} else if (typeof(response.error) !== 'undefined') {
console.log(chalk.red(response.error.message) + ' - Please update to at ' +
'least v' + response.minCLI + ' by running ' +
chalk.cyan('npm update -g ' + require('./firebase').name));
process.exit(1);
} else if (typeof(callback) === 'function') {
setTimeout(callback, 0, new Error('Email or Password Invalid'));
if (typeof(response.minCLI) === 'undefined') {
if (typeof(callback) === 'function') {
setTimeout(callback, 0, new Error('Email or Password Invalid'));
}
} else {
console.log(chalk.red(response.error.message) + ' - Please update to at ' +
'least v' + response.minCLI + ' by running ' +
chalk.cyan('npm update -g ' + require('./firebase').name));
process.exit(1);
}
}
},
saveConfig: function(callback) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "firebase-tools",
"preferGlobal": true,
"version": "1.1.3",
"version": "1.1.4",
"description": "The Firebase Command Line Tools",
"keywords": [
"firebase",
Expand Down

0 comments on commit e388c23

Please sign in to comment.