forked from MapComplete/MapComplete
		
	Docs: improve error message
This commit is contained in:
		
							parent
							
								
									031c4048a6
								
							
						
					
					
						commit
						6a1ad6a2ec
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -509,7 +509,7 @@ export class TagUtils {
 | 
			
		|||
        }
 | 
			
		||||
        if (typeof json != "string") {
 | 
			
		||||
            if (json["and"] !== undefined && json["or"] !== undefined) {
 | 
			
		||||
                throw `Error while parsing a TagConfig: got an object where both 'and' and 'or' are defined`
 | 
			
		||||
                throw `Error while parsing a TagConfig: got an object where both 'and' and 'or' are defined. Did you override a value? Perhaps use \`"=parent": { ... }\` instead of \"parent": {...}\` to trigger a replacement and not a fuse of values`
 | 
			
		||||
            }
 | 
			
		||||
            if (json["and"] !== undefined) {
 | 
			
		||||
                return new And(json["and"].map((t) => TagUtils.Tag(t, context)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue