Skip to content

Commit

Permalink
More logs again, again and again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Nov 22, 2018
1 parent 5cbdfbd commit 07a7935
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/commands/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ const command = {
commandOutput.packages = packages;
}

return Promise.resolve( commandOutput )
.then( () => {
console.log( 'Yyy. If I errored, why am I here?' );
} );
console.log( 'Yyy. If I errored, why am I here? Did I restart and finished without error?' );

return Promise.resolve( commandOutput );
} )
.catch( error => {
console.log( 'There is an error. I will check whether I should execute the command once again.' );
Expand Down Expand Up @@ -105,14 +104,11 @@ module.exports = command;

// See: https://github.com/cksource/mgit2/issues/87
function isRemoteHungUpError( error ) {
console.log( typeof error );
console.log( error );

if ( typeof error != 'string' ) {
error = error.toString();
}

const fatalErrors = error.split( '\n' ).filter( message => message.startsWith( 'fatal:' ) );
const fatalErrors = error.split( '\n' ).filter( message => message.startsWith( 'fatal:' ) ).map( message => message.trim() );

if ( fatalErrors.length !== 3 ) {
return false;
Expand Down

0 comments on commit 07a7935

Please sign in to comment.