forked from MapComplete/MapComplete
		
	Docs: clarify error message
This commit is contained in:
		
							parent
							
								
									d63e7657ad
								
							
						
					
					
						commit
						38d5436f9b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -103,7 +103,7 @@ export default class SubstitutingTag extends TagsFilter {
 | 
			
		|||
 | 
			
		||||
    asChange(properties: Readonly<Record<string, string>>): { k: string; v: string }[] {
 | 
			
		||||
        if (this._invert) {
 | 
			
		||||
            throw "An inverted substituting tag can not be used to create a change"
 | 
			
		||||
            throw "An inverted substituting tag can not be used to create a change. The offending tag is " + this.asHumanString()
 | 
			
		||||
        }
 | 
			
		||||
        const v = SubstitutingTag.substituteString(this._value, properties)
 | 
			
		||||
        if (v.match(/{.*}/) !== null) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue