forked from MapComplete/MapComplete
		
	Better error message
This commit is contained in:
		
							parent
							
								
									4fe7233071
								
							
						
					
					
						commit
						2f3886d2e0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -175,7 +175,7 @@ export default class LayerConfig extends WithContextLoader { | |||
|                 try { | ||||
|                     new Function("feat", "return " + code + ";"); | ||||
|                 } catch (e) { | ||||
|                     throw `Invalid function definition: code ${code} is invalid:${e} (at ${context})` | ||||
|                     throw `Invalid function definition: the custom javascript is invalid:${e} (at ${context}). The offending javascript code is:\n    ${code}` | ||||
|                 } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue