Commit 474e0efa authored by Dr. Carsten Kemena's avatar Dr. Carsten Kemena
Browse files

added error catching for BioSeqDataLib

parent 0a3161a6
Pipeline #117082 passed with stages
in 1 minute and 16 seconds
......@@ -64,7 +64,15 @@ namespace BioSeqDataLib
const fs::path
&operator[](const std::string &name) const
{
return mapping.at(name);
auto settingValue = mapping.find(name);
if (settingValue != mapping.end())
{
return settingValue->second;
}
else
{
throw std::runtime_error("Failed to set parameter '" + name + "'");
}
}
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment