(logPath: string)
| 380 | } |
| 381 | |
| 382 | function formatLogTail(logPath: string): string { |
| 383 | const tail = tailFile(logPath, 30); |
| 384 | if (tail.length === 0) { |
| 385 | return `Check the log for details: ${logPath}`; |
| 386 | } |
| 387 | return `Last log lines (${logPath}):\n${tail}`; |
| 388 | } |
| 389 | |
| 390 | function tailFile(filePath: string, maxLines: number): string { |
| 391 | try { |
no test coverage detected