concurrently-with-grid
Version:
Run commands concurrently
21 lines (16 loc) • 505 B
JavaScript
const { of } = require('rxjs');
module.exports = class LogExit {
constructor({ logger }) {
this.logger = logger;
}
handle(commands) {
commands.forEach(command => command.error.subscribe(event => {
this.logger.logCommandEvent(
`Error occurred when executing command: ${command.command}`,
command
);
this.logger.logCommandEvent(event.stack || event, command);
}));
return commands;
}
};