Skip to content

Commit

Permalink
Added trace message.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Sep 11, 2018
1 parent e56e14d commit 6b560eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.js
Expand Up @@ -60,8 +60,10 @@ function requestPage(url, callback) {
request(url, (error, response, body) => {
if (error)
console.log(`Error requesting page ${url}: ${error}`);
else
else {
console.log(`Obtained page: ${url}`);
callback(body);
}
});
}

Expand Down

0 comments on commit 6b560eb

Please sign in to comment.