Sfoglia il codice sorgente

Catch the JSON undefined error

Gaël Métais 10 anni fa
parent
commit
87717ba448
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  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