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:
parent
a1210a257d
commit
49951cd197
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue