From 84a48215f19d271cfce88439a1300817f0666e85 Mon Sep 17 00:00:00 2001 From: liam4 Date: Wed, 21 Jun 2017 17:10:26 -0300 Subject: Various updates.. maybe finished?? --- src/crawl-http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crawl-http.js') diff --git a/src/crawl-http.js b/src/crawl-http.js index 7f51c87..020506b 100755 --- a/src/crawl-http.js +++ b/src/crawl-http.js @@ -97,9 +97,9 @@ function crawl(absURL, opts = {}, internals = {}) { err => { console.warn("Failed to download: " + absURL) - if (attempts < maxAttempts) { + if (internals.attempts < maxAttempts) { console.warn( - `Trying again. Attempt ${attempts + 1}/${maxAttempts}...` + `Trying again. Attempt ${internals.attempts + 1}/${maxAttempts}...` ) return crawl(absURL, opts, Object.assign({}, internals, { -- cgit 1.3.0-6-gf8a5