Skip to content

Commit

Permalink
Fail and exit telegraf if no plugins are found loaded, issue influxda…
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Aug 7, 2015
1 parent a65d1b5 commit 66c1b8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/telegraf/telegraf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 66c1b8c

Please sign in to comment.