Skip to content

Commit

Permalink
Handle promise errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tenclea committed Mar 29, 2021
1 parent 28c7450 commit bfbb248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.eslintrc.json
.dccache
*.bak
2 changes: 1 addition & 1 deletion utils/proxy-scrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ module.exports = async () => {
return res.split(/\r?\n/).filter(p => p !== '');
});

return await Promise.all(scrapped).then(values => values.reduce((a, b) => a.concat(b), []));
return await Promise.all(scrapped).then(values => values.reduce((a, b) => a.concat(b), [])).catch(e => logger.error(e));
};

0 comments on commit bfbb248

Please sign in to comment.