Commit d1216f40 authored by Radim Marek's avatar Radim Marek

Handle no matches

parent 12f59477
......@@ -194,6 +194,10 @@ func (p *parser) doImport() error {
return p.Errf("Failed to use import pattern %s - %s", importPattern, err.Error())
}
if len(matches) == 0 {
return p.Errf("No files matching the import pattern %s", importPattern)
}
for _, importFile := range matches {
if err := p.doSingleImport(importFile); err != nil {
return err
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment