diff --git a/drivers/phantomjs/js/driver.js b/drivers/phantomjs/js/driver.js index 2ecf483f5..c56e78024 100644 --- a/drivers/phantomjs/js/driver.js +++ b/drivers/phantomjs/js/driver.js @@ -93,6 +93,9 @@ page.onConsoleMessage = function(message) { wappalyzer.log(message); }; + page.onError = function(message) { + wappalyzer.log('Page error: ' + message); + }; page.onResourceReceived = function(response) { if ( response.url.replace(/\/$/, '') === url.replace(/\/$/, '') ) {