Skip to content

Commit

Permalink
fix: correctly read pipeline file
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed May 30, 2024
1 parent 9ff3a2a commit 72be2e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/kotlin/parser/Parser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 72be2e5

Please sign in to comment.