0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00

Import allows only one expression

This commit is contained in:
Radim Marek 2015-12-29 23:32:59 +01:00
parent eb48885d4d
commit 1e7ec3397b

View file

@ -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)