Bug 664: Report an error if token in meas statement is not a vector and

cannot be evaluated as a number.
This commit is contained in:
Holger Vogt 2024-03-26 20:08:08 +01:00
parent a1210a257d
commit 49951cd197
1 changed files with 4 additions and 0 deletions

View File

@ -1481,6 +1481,10 @@ measure_parse_when(
correct_vec(meas);
} else {
meas->m_val = INPevaluate(&pVar2, &err, 1);
if (err) {
snprintf(errBuf, 99, "Cannot evaluate %s \n", pVar2);
return MEASUREMENT_FAILURE;
}
}
} else {
if (measure_parse_stdParams(meas, wl, NULL, errBuf) == MEASUREMENT_FAILURE)