forked from MapComplete/MapComplete
		
	Fix: improve error message
This commit is contained in:
		
							parent
							
								
									5585f02cad
								
							
						
					
					
						commit
						7f6c1f06e2
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -301,10 +301,9 @@ export class TagUtils {
 | 
			
		|||
            }
 | 
			
		||||
 | 
			
		||||
            console.error("Invalid type to flatten the multiAnswer", tagsFilter)
 | 
			
		||||
            throw (
 | 
			
		||||
                "Invalid type to FlattenMultiAnswer, not one of RegexTag, Tag or And: " +
 | 
			
		||||
                tagsFilter.asHumanString(false, false, {})
 | 
			
		||||
            )
 | 
			
		||||
            throw `Invalid type to FlattenMultiAnswer, not one of ${
 | 
			
		||||
                allowRegex ? "RegexTag, " : ""
 | 
			
		||||
            }Tag or And: ${tagsFilter.asHumanString(false, false, {})}`
 | 
			
		||||
        }
 | 
			
		||||
        return keyValues
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue