forked from MapComplete/MapComplete
Fix runtime error detection
This commit is contained in:
parent
5738f8efb1
commit
54c0d0890c
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export class Overpass {
|
|||
}
|
||||
Utils.downloadJson(query)
|
||||
.then(json => {
|
||||
if (json.elements === [] && (json.remarks.indexOf("runtime error") > 0)) {
|
||||
if (json.elements === [] && ((json.remarks ?? json.remark).indexOf("runtime error") >= 0)) {
|
||||
console.log("Timeout or other runtime error");
|
||||
onFail("Runtime error (timeout)")
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue