File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments