Commit fdbc28ab authored by Rashad Kanavath's avatar Rashad Kanavath

ENH: provide a clear error message to user

parent a7e87a13
......@@ -172,7 +172,10 @@ ChoiceParameter::SetValue(std::string choiceKey)
++i;
}
itkExceptionMacro(<< "Cannot find " << choiceKey);
itkExceptionMacro(<< "Invalid parameter value '"
<< choiceKey << "'"
<< " given for parameter '-"
<< this->GetKey() << "'");
}
unsigned int
......
Markdown is supported
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