Skip to content

Commit 40043ba

Browse files
authored
Ignore errors by default (#168)
1 parent bfb55d7 commit 40043ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Makes requests to `urls` and saves all files found with `sources` to `directory`
5656
- `request`: object, custom options for [request](https://github.com/request/request#requestoptions-callback) *(optional, see example below)*
5757
- `recursive`: boolean, if `true` scraper will follow anchors in html files. Don't forget to set `maxDepth` to avoid infinite downloading *(optional, see example below)*
5858
- `maxDepth`: positive number, maximum allowed depth for dependencies *(optional, see example below)*
59-
- `ignoreErrors`: boolean, if `true` scraper will continue downloading resources after error occured, if `false` - scraper will finish process and return error *(optional, default: false)*
59+
- `ignoreErrors`: boolean, if `true` scraper will continue downloading resources after error occured, if `false` - scraper will finish process and return error *(optional, default: true)*
6060

6161
Default options you can find in [lib/config/defaults.js](https://github.com/s0ph1e/node-website-scraper/blob/master/lib/config/defaults.js).
6262

lib/config/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var config = {
3434
},
3535
recursive: false,
3636
maxDepth: null,
37-
ignoreErrors: false
37+
ignoreErrors: true
3838
};
3939

4040
module.exports = config;

0 commit comments

Comments
 (0)