Skip to content
Snippets Groups Projects
Commit e71aae94 authored by tpylak's avatar tpylak
Browse files

LMS-2562 minor: better error message

SVN: 23397
parent ce3ec347
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ import org.apache.log4j.Logger;
import ch.rinn.restrictions.Private;
import ch.systemsx.cisd.common.collections.CollectionUtils;
import ch.systemsx.cisd.common.exceptions.ConfigurationFailureException;
import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.common.filesystem.FileOperations;
import ch.systemsx.cisd.common.filesystem.FileUtilities;
......@@ -262,6 +263,10 @@ public class SimpleImageDataSetRegistrator
{
// NOTE: ugly side effect which is used later on
imageLibraryInfoOrNull.setReaderName(readerOrNull.getName());
} else
{
throw ConfigurationFailureException.fromTemplate(
"Cannot find any reader for '%s' library.", imageLibraryInfoOrNull);
}
}
return readerOrNull;
......
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