diff --git a/src/drivers/phantomjs/driver.js b/src/drivers/phantomjs/driver.js index c76fc6002..c2303bd46 100644 --- a/src/drivers/phantomjs/driver.js +++ b/src/drivers/phantomjs/driver.js @@ -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); } })();