on errors, halts torque and displays them
This commit is contained in:
parent
e96a1c7118
commit
c04ab74a97
@ -459,6 +459,13 @@
|
||||
torque.net.jsonp(url, function (data) {
|
||||
map_instance_time.end();
|
||||
if (data) {
|
||||
if (data.errors){
|
||||
for (error in data.errors){
|
||||
console.error(data.errors[error]);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
var torque_key = Object.keys(data.metadata.torque)[0]
|
||||
var opt = data.metadata.torque[torque_key];
|
||||
for(var k in opt) {
|
||||
|
Loading…
Reference in New Issue
Block a user