Merge pull request #1068 from lunixbochs/master

don't panic when config directory is empty
This commit is contained in:
Vishal Nayak 2016-02-15 11:03:48 -05:00
commit c35836bc89

View File

@ -79,6 +79,12 @@ func (c *ServerCommand) Run(args []string) int {
}
}
// Ensure at least one config was found.
if config == nil {
c.Ui.Error("No configuration files found.")
return 1
}
// Ensure that a backend is provided
if config.Backend == nil {
c.Ui.Error("A physical backend must be specified")