mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-23 18:55:49 +03:00
Import allows only one expression
This commit is contained in:
parent
eb48885d4d
commit
1e7ec3397b
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ func (p *parser) doImport() error {
|
||||||
}
|
}
|
||||||
importPattern := p.Val()
|
importPattern := p.Val()
|
||||||
if p.NextArg() {
|
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)
|
matches, err := filepath.Glob(importPattern)
|
||||||
|
|
Loading…
Reference in a new issue