forked from MapComplete/MapComplete
		
	Dump result to console in case of an error
This commit is contained in:
		
							parent
							
								
									ac7c3d837d
								
							
						
					
					
						commit
						1815227fe6
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -75,6 +75,7 @@ export default class ScriptUtils { | |||
|                         try { | ||||
|                             resolve(JSON.parse(result)) | ||||
|                         } catch (e) { | ||||
|                             console.error("Could not parse the following as JSON:", result) | ||||
|                             reject(e) | ||||
|                         } | ||||
|                     }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue