diff --git a/config/config.go b/config/config.go index 7b18b1f3..52e4ea22 100644 --- a/config/config.go +++ b/config/config.go @@ -23,6 +23,7 @@ import ( "time" "encoding/json" + "github.com/prometheus/common/model" "gopkg.in/yaml.v2" ) @@ -51,6 +52,10 @@ func Load(s string) (*Config, error) { return nil, errors.New("no route provided in config") } + if cfg.Route.Continue { + return nil, errors.New("cannot have continue in root route") + } + cfg.original = s return cfg, nil }