app/vmselect/promql: typo fix after 992f36702f

This commit is contained in:
Aliaksandr Valialkin 2022-08-30 12:04:06 +03:00
parent c35b63cd0c
commit cd422a5435
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -307,9 +307,7 @@ func evalTransformFunc(qt *querytracer.Tracer, ec *EvalConfig, fe *metricsql.Fun
} }
rv, err := tf(tfa) rv, err := tf(tfa)
if err != nil { if err != nil {
return nil, &UserReadableError{ return nil, fmt.Errorf(`cannot evaluate %q: %w`, fe.AppendString(nil), err)
Err: fmt.Errorf(`cannot evaluate %q: %w`, fe.AppendString(nil), err),
}
} }
return rv, nil return rv, nil
} }