Skip to content

Commit

Permalink
Fail and exit telegraf if no plugins are found loaded, issue #26
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Aug 11, 2015
1 parent fc95e84 commit 38bbe75
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 @@ -71,6 +71,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 38bbe75

Please sign in to comment.