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)