Skip to content

Commit

Permalink
Fixed visibility of the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Nov 19, 2018
1 parent b222946 commit ad5b0de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ module.exports = function( args, options ) {
console.log( chalk.cyan( `Execution time: ${ endTime[ 0 ] }s${ endTime[ 1 ].toString().substring( 0, 3 ) }ms.` ) );

if ( packagesWithError.size ) {
console.log( chalk.yellow( `The command failed to execute in ${ packagesWithError.size } repositories.` ) );
const repositoryForm = packagesWithError.size === 1 ? 'repository' : 'repositories';
const message = `\n❗❗❗ The command failed to execute in ${ packagesWithError.size } ${ repositoryForm }.❗❗❗\n`;

console.log( chalk.red( message ) );
process.exit( 1 );
}
} );
Expand Down

0 comments on commit ad5b0de

Please sign in to comment.