Skip to content
Snippets Groups Projects
Commit 89fd555e authored by Sander Bollen's avatar Sander Bollen
Browse files

some nicer exceptions

parent 34fc7da9
No related branches found
No related tags found
No related merge requests found
......@@ -164,8 +164,8 @@ object VEPNormalizer extends ToolCommand {
*/
def csqCheck(header: VCFHeader) = {
if (!header.hasInfoLine("CSQ")) {
logger.error("No CSQ info tag found! Is this file VEP-annotated?")
throw new VEPException("")
//logger.error("No CSQ info tag found! Is this file VEP-annotated?")
throw new VEPException("No CSQ info tag found! Is this file VEP-annotated?")
}
}
......@@ -185,8 +185,8 @@ object VEPNormalizer extends ToolCommand {
}
val version = VCFHeaderVersion.toHeaderVersion(format)
if (!version.isAtLeastAsRecentAs(VCFHeaderVersion.VCF4_0)) {
logger.error(s"""version $version is not supported""")
throw new VEPException("")
//logger.error(s"""version $version is not supported""")
throw new VEPException(s"""version $version is not supported""")
}
}
......
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