Skip to content
Snippets Groups Projects
Commit 8b93b363 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Re #6190. Beefed up error message for deprecated algorithms.

Sorry, but throwing an exception when the developer didn't specify an
alternate algorithm doesn't always make sense. Sometimes an algorithm
just get dropped from the list of things mantid does.
parent 9c3fc52c
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,14 @@ namespace API
if (!this->m_deprecatdDate.empty())
msg << " (on " << this->m_deprecatdDate << ")";
if (!this->m_replacementAlgorithm.empty())
msg << ". Use " << this->m_replacementAlgorithm << " instead." << std::endl;
if (this->m_replacementAlgorithm.empty())
{
msg << " and has no replacement.";
}
else
{
msg << ". Use " << this->m_replacementAlgorithm << " instead.";
}
return msg.str();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment