Skip to content

Commit

Permalink
Print out repositories where an executed command failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Jul 23, 2019
1 parent 11b379a commit 256799f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ module.exports = function( args, options ) {

if ( packagesWithError.size ) {
const repositoryForm = packagesWithError.size === 1 ? 'repository' : 'repositories';
const message = `\n❗❗❗ The command failed to execute in ${ packagesWithError.size } ${ repositoryForm }.\n`;
let message = `\n❗❗❗ The command failed to execute in ${ packagesWithError.size } ${ repositoryForm }:\n`;
message += [ ...packagesWithError ].map( pkgName => ` - ${ pkgName }` ).join( '\n' );
message += '\n';

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

0 comments on commit 256799f

Please sign in to comment.