Commit 4ea54f5a authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1471: warn users if the parameter can't be set using a string

parent 3ab46139
......@@ -250,6 +250,10 @@ void Application::SetParameterString(std::string parameter, std::string value, b
if ( !paramDown->SetFileName(value) )
otbAppLogCRITICAL( <<"Invalid XML parameter filename " << value <<".");
}
else
{
otbAppLogWARNING( <<"This parameter can't be set using SetParameterString().");
}
this->SetParameterUserValue(parameter, hasUserValueFlag);
}
......
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