Skip to content

Commit

Permalink
Refs #9473 Improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Sep 25, 2014
1 parent b35513d commit b6910d9
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -203,7 +203,16 @@ namespace MantidQt
//Parse and set any user-specified options
auto optionsMap = Mantid::Kernel::Strings::splitToKeyValues(options);
for(auto kvp = optionsMap.begin(); kvp != optionsMap.end(); ++kvp)
algReflOne->setProperty(kvp->first, kvp->second);
{
try
{
algReflOne->setProperty(kvp->first, kvp->second);
}
catch(Mantid::Kernel::Exception::NotFoundError& e)
{
throw std::runtime_error("Invalid property in options column: " + kvp->first);
}
}

algReflOne->execute();

Expand Down

0 comments on commit b6910d9

Please sign in to comment.