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)
 | 
					        Utils.downloadJson(query)
 | 
				
			||||||
            .then(json => {
 | 
					            .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");
 | 
					                    console.log("Timeout or other runtime error");
 | 
				
			||||||
                    onFail("Runtime error (timeout)")
 | 
					                    onFail("Runtime error (timeout)")
 | 
				
			||||||
                    return;
 | 
					                    return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue