(commands: Command[])
| 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 | } |
nothing calls this directly
no test coverage detected