mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 02:27:19 -04:00 
			
		
		
		
	Import allows only one expression
This commit is contained in:
		
							parent
							
								
									eb48885d4d
								
							
						
					
					
						commit
						1e7ec3397b
					
				| @ -187,7 +187,7 @@ func (p *parser) doImport() error { | ||||
| 	} | ||||
| 	importPattern := p.Val() | ||||
| 	if p.NextArg() { | ||||
| 		return p.Err("Import allows only one file to import") | ||||
| 		return p.Err("Import allows only one expression, either file or glob pattern") | ||||
| 	} | ||||
| 
 | ||||
| 	matches, err := filepath.Glob(importPattern) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user