소스 검색

Catch the JSON undefined error

Gaël Métais 11 년 전
부모
커밋
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) {
-                    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