Fail and exit telegraf if no plugins are found loaded, issue #26
This commit is contained in:
parent
24eb7d6bc9
commit
e0d0bc0966
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in New Issue