diff --git a/src/main/kotlin/parser/Parser.kt b/src/main/kotlin/parser/Parser.kt index 379957f..61a03e4 100644 --- a/src/main/kotlin/parser/Parser.kt +++ b/src/main/kotlin/parser/Parser.kt @@ -18,8 +18,13 @@ class Parser(file: File) { .java .getResource("/pipeline.ttl") .let { it ?: Log.shared.fatal("Pipeline file not found") } - .toURI() - .let { File(it) } + .let { + try { + File(it.path) + } catch (e: Exception) { + Log.shared.fatal("Pipeline ${it.path} not found") + } + } .readModelRecursively() /** Class references to the different processors. */