Commit f4ab0677 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix BIOPET-379

parent 2cf328c5
......@@ -141,9 +141,15 @@ trait MultiSampleQScript extends SummaryQScript { qscript: QScript =>
/** returns a set with library names or throws error when not found */
protected def libIds: Set[String] = {
val ids = ConfigUtils.getMapFromPath(, List("samples", sampleId, "libraries")).getOrElse(Map()).keySet
val ids: Set[String] = try {
ConfigUtils.getMapFromPath(, List("samples", sampleId, "libraries")).getOrElse(Map()).keySet
} catch {
case e: IllegalStateException if e.getMessage == "Value is not a map: library" =>
Logging.addError("libraries is not a map")
if (ids.isEmpty) {
throw new IllegalStateException(s"No libraries found in config for sample $sampleId")
Logging.addError(s"No libraries found in config for sample $sampleId")
Supports Markdown
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