瀏覽代碼

Catch the JSON undefined error

Gaël Métais 10 年之前
父節點
當前提交
87717ba448
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/lib/phantomasWrapper.js

+ 1 - 3
app/lib/phantomasWrapper.js

@@ -82,9 +82,7 @@ var PhantomasWrapper = function() {
                 }
                 }
 
 
                 if (!json || !json.metrics) {
                 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
                 // Don't cancel test if it is a timeout and we've got some results