Catch the JSON undefined error

This commit is contained in:
Gaël Métais
2014-09-05 15:23:16 +02:00
parent 7b6b7bc58d
commit 87717ba448
+1 -3
View File
@@ -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