Fixed error handling in PhantomJS driver

main
Elbert Alias 10 years ago
parent 02e58c23b8
commit 0373879057

@ -99,7 +99,7 @@
page.onError = function(message) {
wappalyzer.log(message, 'error');
console.log('{}');
console.log(JSON.stringify({ applications: [] }));
phantom.exit(1);
};
@ -107,7 +107,7 @@
page.onResourceTimeout = function() {
wappalyzer.log('Resource timeout', 'error');
console.log('{}');
console.log(JSON.stringify({ applications: [] }));
phantom.exit(1);
};
@ -171,7 +171,7 @@
} catch ( e ) {
wappalyzer.log(e, 'error');
console.log('{}');
console.log(JSON.stringify({ applications: [] }));
phantom.exit(1);
}