(error: unknown)
| 2409 | } |
| 2410 | |
| 2411 | function timeoutErrorMessage(error: unknown): string { |
| 2412 | if (error instanceof Error && error.message.trim()) { |
| 2413 | return error.message; |
| 2414 | } |
| 2415 | return "download timed out"; |
| 2416 | } |
| 2417 | |
| 2418 | async function pathExists(absolutePath: string): Promise<boolean> { |
| 2419 | try { |