MCPcopy Index your code
hub / github.com/open-cli-tools/concurrently / handle

Method handle

lib/flow-control/log-error.ts:15–29  ·  view source on GitHub ↗
(commands: Command[])

Source from the content-addressed store, hash-verified

13 }
14
15 handle(commands: Command[]) {
16 commands.forEach((command) =>
17 command.error.subscribe((event) => {
18 this.logger.logCommandEvent(
19 `Error occurred when executing command: ${command.command}`,
20 command,
21 );
22
23 const errorText = String(event instanceof Error ? event.stack || event : event);
24 this.logger.logCommandEvent(errorText, command);
25 }),
26 );
27
28 return { commands };
29 }
30}

Callers

nothing calls this directly

Calls 1

logCommandEventMethod · 0.80

Tested by

no test coverage detected