Skip to content

Commit e388c23

Browse files
author
Chris Raynor
committed
Merge pull request #35 from firebase/v1.1.4
v1.1.4
2 parents ffa30bc + d984cf0 commit e388c23

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

lib/auth.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,16 @@ var auth = {
148148
this.token = token;
149149
this.saveConfig(callback);
150150
} else if (typeof(response.error) !== 'undefined') {
151-
console.log(chalk.red(response.error.message) + ' - Please update to at ' +
152-
'least v' + response.minCLI + ' by running ' +
153-
chalk.cyan('npm update -g ' + require('./firebase').name));
154-
process.exit(1);
155-
} else if (typeof(callback) === 'function') {
156-
setTimeout(callback, 0, new Error('Email or Password Invalid'));
151+
if (typeof(response.minCLI) === 'undefined') {
152+
if (typeof(callback) === 'function') {
153+
setTimeout(callback, 0, new Error('Email or Password Invalid'));
154+
}
155+
} else {
156+
console.log(chalk.red(response.error.message) + ' - Please update to at ' +
157+
'least v' + response.minCLI + ' by running ' +
158+
chalk.cyan('npm update -g ' + require('./firebase').name));
159+
process.exit(1);
160+
}
157161
}
158162
},
159163
saveConfig: function(callback) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "firebase-tools",
33
"preferGlobal": true,
4-
"version": "1.1.3",
4+
"version": "1.1.4",
55
"description": "The Firebase Command Line Tools",
66
"keywords": [
77
"firebase",

0 commit comments

Comments
 (0)