vmselect: return correct error for second part of expression (#2893)

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-07-20 16:44:28 +02:00 committed by Aliaksandr Valialkin
parent db96221cee
commit 04c4f8bafd
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -452,7 +452,7 @@ func execBinaryOpArgs(qt *querytracer.Tracer, ec *EvalConfig, exprFirst, exprSec
return nil, nil, errFirst
}
if errSecond != nil {
return nil, nil, errFirst
return nil, nil, errSecond
}
return tssFirst, tssSecond, nil
}