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