Skip to content

Commit 2d1450c

Browse files
authored
Merge pull request #110 from cksource/t/104
Feature: Repositories, where an executed command failed, will be printed out at the end of the mgit log. Closes #104.
2 parents 11b379a + 256799f commit 2d1450c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ module.exports = function( args, options ) {
139139

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

144146
console.log( chalk.red( message ) );
145147
process.exit( 1 );

0 commit comments

Comments
 (0)