Skip to content
Snippets Groups Projects
Commit d832c4d5 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

ENH: better handling of user mistakes

parent c6816f87
Branches
Tags
No related merge requests found
......@@ -166,8 +166,7 @@ void DoExecute()
if( GetParameterInt("channel") > nBComp )
{
otbAppLogCRITICAL("Selected band is not available...");
return;
itkExceptionMacro(<< "The specified channel index is invalid.");
}
const std::string texType = GetParameterString("texture");
......
......@@ -568,7 +568,7 @@ private:
if( m_ImageList->Size() == 0 )
{
otbAppLogCRITICAL("No indices selected...");
itkExceptionMacro(<< "No indices selected...");
}
m_Concatener->SetInput( m_ImageList );
......@@ -578,7 +578,7 @@ private:
}
else
{
otbAppLogINFO("Wrong Band Number...");
itkExceptionMacro(<< "At least one needed channel has an invalid index");
}
}
......
......@@ -130,8 +130,7 @@ void DoExecute()
if( GetParameterInt("channel") > nBComp )
{
otbAppLogCRITICAL("Selected band is not available...");
return;
itkExceptionMacro(<< "The specified channel index is invalid.");
}
m_ExtractorFilter = ExtractorFilterType::New();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment