From 03738790570101c51bc07439bdec9fe1bc58f6fd Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 29 Mar 2015 09:29:30 +1100 Subject: [PATCH] Fixed error handling in PhantomJS driver --- src/drivers/phantomjs/driver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }