Closed atian25 closed 9 years ago
You're correct, the onError
promise syntax is onError(callback:function(error, utls))
.
The done
promise is always executed, even if there's an error, in that case the promise chain is stopped, the onError
is triggered and then done
fired.
There are examples missing for use, for now,
var scraper = new sjs.StaticScraper();
scraper
.scrape(...);
var router = new Router();
router
.on( ... )
.use(scraper);