forked from MapComplete/MapComplete
		
	Fix: emit warning for invalid suggestions
This commit is contained in:
		
							parent
							
								
									578f638749
								
							
						
					
					
						commit
						56ba426ab5
					
				
					 6 changed files with 5 additions and 6 deletions
				
			
		|  | @ -207,6 +207,9 @@ function extractHintsFrom( | |||
|             validators: Validators, | ||||
|             Constants: Constants, | ||||
|         }) | ||||
|         if(hints["suggestions"]?.indexOf(null) >= 0){ | ||||
|             throw "A suggestion generated 'null' for "+path.join(".")+". Check the docstring, specifically 'suggestions'. Pay attention to double commas" | ||||
|         } | ||||
|     } | ||||
|     return hints | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue