Fail and exit telegraf if no plugins are found loaded, issue #26

This commit is contained in:
Cameron Sparr 2015-08-06 16:22:24 -06:00
parent 24eb7d6bc9
commit e0d0bc0966
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ func main() {
if err != nil {
log.Fatal(err)
}
if len(plugins) == 0 {
log.Printf("Error: no plugins found, did you provide a config file?")
os.Exit(1)
}
if *fTest {
if *fConfig != "" {