mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-06 02:30:57 -08:00
Merge pull request #28 from slackhq/no-config
Better error message when no config files found
This commit is contained in:
commit
6412e10d9b
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,10 @@ func (c *Config) Load(path string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if len(c.files) == 0 {
|
||||
return fmt.Errorf("no config files found at %s", path)
|
||||
}
|
||||
|
||||
sort.Strings(c.files)
|
||||
|
||||
err = c.parse()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue