Skip to content

Commit

Permalink
validate measurements earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
rwynn committed Apr 22, 2019
1 parent d6c0199 commit 04b02b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mongofluxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,10 @@ func main() {
}
config.LoadConfigFile().SetDefaults().LoadPlugin()

if len(config.Measurement) == 0 {
errorLog.Panicf("at least one measurement is required")
}

sigs := make(chan os.Signal, 1)
stopC := make(chan bool, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL)
Expand Down

0 comments on commit 04b02b8

Please sign in to comment.