Don't skip recording rule errors

This commit is contained in:
Fabian Reinartz 2016-01-12 10:26:06 +01:00
parent 6293f3a374
commit 26eb3ac2f8

View file

@ -55,6 +55,10 @@ func (rule RecordingRule) eval(timestamp model.Time, engine *promql.Engine) (mod
result = query.Exec() result = query.Exec()
vector model.Vector vector model.Vector
) )
if result.Err != nil {
return nil, err
}
switch result.Value.(type) { switch result.Value.(type) {
case model.Vector: case model.Vector:
vector, err = result.Vector() vector, err = result.Vector()