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 GitHub
parent 6a079df33f
commit 9ccf695d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -435,7 +435,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
}