Fix bug on the error reporting
This commit is contained in:
@@ -74,7 +74,7 @@ var PhantomasWrapper = function() {
|
||||
console.log('Returning from Phantomas');
|
||||
|
||||
// Adding some YellowLabTools errors here
|
||||
if (!json.metrics.javascriptExecutionTree) {
|
||||
if (!json || !json.metrics || !json.metrics.javascriptExecutionTree) {
|
||||
err = 1001;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user