mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
fix: throw error when number of headings is not equal to parsed values
This commit is contained in:
parent
f3444ab2fa
commit
e1ee3f801a
@ -15,6 +15,11 @@ PhreeqcSelectedOutputParser::PhreeqcSelectedOutputParser(
|
||||
|
||||
if (this->_m_has_selected_output) {
|
||||
parseHeader();
|
||||
if (this->_m_headings.size() != this->getValues(1).size()) {
|
||||
throw std::runtime_error(
|
||||
"Number of headings does not match number of values in selected "
|
||||
"output.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user