Function
printFailedTaskMessages
(tasks: JobTask[], logger: Logger)
Source from the content-addressed store, hash-verified
| 417 | } |
| 418 | |
| 419 | function printFailedTaskMessages(tasks: JobTask[], logger: Logger): void { |
| 420 | for (const task of tasks.filter(task => task.status === 'error' || task.status === 'failed')) { |
| 421 | logger.error( |
| 422 | `Task \`${task.name}\` failed: ${task.message ?? ''} (Code: ${task.code ?? 'UNKNOWN_ERROR'})` |
| 423 | ); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | function closeCloudConvertSocket(cloudconvert: CloudConvertClient): void { |
| 428 | if (cloudconvert.closeSocket) { |
Tested by
no test coverage detected