Handle uncaught exceptions in NPM driver

main
Elbert Alias 7 years ago
parent c4b7070e12
commit 916b3af5c0

@ -44,6 +44,8 @@ class Driver {
this.wappalyzer.driver.log = (message, source, type) => this.log(message, source, type);
this.wappalyzer.driver.displayApps = (detected, meta, context) => this.displayApps(detected, meta, context);
process.on('uncaughtException', e => this.wappalyzer.log('Uncaught exception: ' + e.message, 'driver', 'error'));
}
analyze() {