WSL/SLF GitLab Repository

Skip to content
Snippets Groups Projects
Commit 1c9b2dea authored by Mathias Bavay's avatar Mathias Bavay
Browse files

More details in error messages

parent d996a971
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,7 @@ namespace IOUtils {
const std::string value = it->second;
if(!convertString<T>(t, value, std::dec)) {
std::cerr << "[E] When reading \"" << key << "\" = \"" << t << "\"\n";
throw ConversionFailedException(value, AT);
}
}
......@@ -256,6 +257,7 @@ namespace IOUtils {
for (unsigned int ii=0; ii<counter; ii++){
T myvar;
if(!convertString<T>(myvar, vecUnconvertedValues.at(ii), std::dec)){
std::cerr << "[E] When reading \"" << key << "\" = \"" << myvar << "\"\n";
throw ConversionFailedException(vecUnconvertedValues.at(ii), AT);
}
vecT.push_back(myvar);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment