Fixed error handling in PhantomJS driver

main
Elbert Alias 10 years ago
parent 7bf06fd1ff
commit 02e58c23b8

@ -99,12 +99,16 @@
page.onError = function(message) {
wappalyzer.log(message, 'error');
console.log('{}');
phantom.exit(1);
};
page.onResourceTimeout = function() {
wappalyzer.log('Resource timeout', 'error');
console.log('{}');
phantom.exit(1);
};
@ -167,6 +171,8 @@
} catch ( e ) {
wappalyzer.log(e, 'error');
console.log('{}');
phantom.exit(1);
}
})();

Loading…
Cancel
Save