Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed May 24, 2019
1 parent f87a2c0 commit 2875f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/thanos/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func registerRule(m map[string]setupFunc, app *kingpin.Application, name string)
fileSD = file.NewDiscovery(conf, logger)
}

if fileSD == nil {
if fileSD == nil || len(*queries) == 0 {
return errors.Errorf("No --query parameter was given.")
}

Expand Down

0 comments on commit 2875f6e

Please sign in to comment.