Skip to content

Commit 1265fc7

Browse files
committed
docs: handle error
1 parent 693a2d4 commit 1265fc7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ crawler.addRunner('a11y-dev-tools', new A11yDeveloperToolsRunner());
2424
crawler.crawl()
2525
.then((data) => {
2626
console.log(JSON.stringify(data.results, true, 2));
27-
});
27+
}, (err) => console.error(err));
2828
```
2929

3030
This project is in no way affiliated with Google, Inc.

examples/tonic.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
/* eslint-disable no-console */
1+
'use strict';
2+
23
const CrawlKit = require('crawlkit');
34
const A11yDeveloperToolsRunner = require('crawlkit-runner-accessibility-developer-tools');
45

56
const crawler = new CrawlKit('http://www.google.com');
67
crawler.addRunner('a11y-dev-tools', new A11yDeveloperToolsRunner());
78

9+
/* eslint-disable no-console */
810
crawler.crawl()
911
.then((data) => {
1012
console.log(JSON.stringify(data.results, true, 2));
11-
});
13+
}, (err) => console.error(err));

0 commit comments

Comments
 (0)