mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 17:56:34 +08: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…
Reference in New Issue
Block a user