From c03fe4d2d22a2567ba3df45ce51ee4b971b6cb10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E9=92=BA?= <736185378@qq.com> Date: Fri, 9 Mar 2018 23:05:52 +0800 Subject: [PATCH] test --- src/lib/Downloader.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/Downloader.ts b/src/lib/Downloader.ts index 82644f7..b0e74f4 100644 --- a/src/lib/Downloader.ts +++ b/src/lib/Downloader.ts @@ -63,6 +63,7 @@ export class Downloader extends DownloaderBase { try { if(await this.isFileExists(path) && await this.isFileSynced(url, path)) { + console.log(path, url) return path; } } @@ -79,7 +80,8 @@ export class Downloader extends DownloaderBase { return path; } else { - throw err; + console.info('DNS lookup timeout, use local caches at this time.'); + return path } }