From 87717ba448dbfd11d844449873385e8a85156893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Fri, 5 Sep 2014 15:23:16 +0200 Subject: [PATCH] Catch the JSON undefined error --- app/lib/phantomasWrapper.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/lib/phantomasWrapper.js b/app/lib/phantomasWrapper.js index 80a3da1..3c87fd4 100644 --- a/app/lib/phantomasWrapper.js +++ b/app/lib/phantomasWrapper.js @@ -82,9 +82,7 @@ var PhantomasWrapper = function() { } if (!json || !json.metrics) { - console.log('IIIIIIIIIIK'); - console.log(err); - console.log(json); + err = 1002; } // Don't cancel test if it is a timeout and we've got some results