Skip to content
Snippets Groups Projects
Commit e32a9778 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added error message

parent 8ad1aa41
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ class GensToVcf(val root: Configurable) extends ToolCommandFunction with Referen
override def beforeGraph(): Unit = {
super.beforeGraph()
if (reference == null) reference = referenceFasta()
if (contig == null) throw new IllegalStateException
if (contig == null) throw new IllegalStateException("Contig is missing")
if (outputVcf.getName.endsWith(".vcf.gz")) outputFiles :+= new File(outputVcf.getAbsolutePath + ".tbi")
}
......
......@@ -42,7 +42,7 @@ class SnptestToVcf(val root: Configurable) extends ToolCommandFunction with Refe
override def beforeGraph(): Unit = {
super.beforeGraph()
if (reference == null) reference = referenceFasta()
if (contig == null) Logging.addError("SnptestToVcf is missing a contig")
if (contig == null) throw new IllegalStateException("Contig is missing")
//if (outputVcf.getName.endsWith(".vcf.gz")) outputFiles :+= new File(outputVcf.getAbsolutePath + ".tbi")
}
......
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