Commit 1f17e7c6 authored by Peter van 't Hof's avatar Peter van 't Hof

Improved message

parent 04ba5a27
......@@ -73,8 +73,8 @@ class BamMetrics(val root: Configurable) extends QScript
/** executed before script */
def init(): Unit = {
inputFiles :+= new InputFile(inputBam)
ampliconBedFile.foreach(BedCheck.checkBedFileToReference(_, referenceFasta()))
roiBedFiles.foreach(BedCheck.checkBedFileToReference(_, referenceFasta()))
ampliconBedFile.foreach(BedCheck.checkBedFileToReference(_, referenceFasta(), biopetError = true))
roiBedFiles.foreach(BedCheck.checkBedFileToReference(_, referenceFasta(), biopetError = true))
}
/** Script to add jobs */
......
......@@ -19,7 +19,7 @@ object BedCheck {
try {
bedrecords.validateContigs(reference)
} catch {
case e: IllegalArgumentException => Logging.addError(e.getMessage)
case e: IllegalArgumentException => Logging.addError(e.getMessage + s", Bedfile: $bedFile")
}
} else bedrecords.validateContigs(reference)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment