From 256799f42e83e75f3514de88b3e8b4f970fc4787 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Tue, 23 Jul 2019 10:52:19 +0200 Subject: [PATCH] Print out repositories where an executed command failed. --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index d57c85f..7dc6ee2 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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 );