Skip to content
Snippets Groups Projects
Commit fdbc28ab authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

ENH: provide a clear error message to user

parent a7e87a13
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment