1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-27 19:50:21 +02:00

Look for errors in header data

This commit is contained in:
Barry vd. Heuvel
2013-12-29 19:39:32 +01:00
parent 8e031e4774
commit 60ecbfc507

View File

@@ -922,7 +922,11 @@ if (typeof(PhpDebugBar) == 'undefined') {
}
var data = this.parseHeaders(raw);
this.debugbar.addDataSet(data.data, data.id, "(ajax)");
if(data.error){
throw new Error('Error loading debugbar data: '+data.error);
}else if(data.data){
this.debugbar.addDataSet(data.data, data.id, "(ajax)");
}
return true;
},