Skip to content
Snippets Groups Projects
Commit a39d6dcb authored by Marina Bertolino's avatar Marina Bertolino
Browse files

ENH: change warning messages to error messages if band range synthax is invalid

parent 91c769c0
No related branches found
No related tags found
No related merge requests found
......@@ -244,6 +244,7 @@ ExtendedFilenameHelper
else
{
// Invalid range wrt. the given number of bands
itkExceptionMacro("Invalid band number.");
return false;
}
}
......
......@@ -138,7 +138,7 @@ ExtendedFilenameToReaderOptions
}
else
{
itkWarningMacro("Unkwown value "<<map["bands"]<<" for band range. Expect a list of tokens separated with comma (each token being a single band index or a range in the form x:y)");
itkExceptionMacro("Unkwown value "<<map["bands"]<<" for band range. Expect a list of tokens separated with comma (each token being a single band index or a range in the form x:y)");
}
}
......
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