Skip to content

Commit

Permalink
More detailed message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlord committed Nov 3, 2023
1 parent f49ad91 commit 746a149
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script-server/src/main/kotlin/org/geobon/pipeline/Output.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class Output(override val type:String) : Pipe {
step?.execute()
?: throw RuntimeException("Output of type $type disconnected from any step when pulling")
}
return value ?: throw RuntimeException("Output of type $type has not been set by step $step")
return value
?: throw RuntimeException("Output of type \"$type\" has not been set by " +
step?.run { "${javaClass.simpleName} $id" })
}

override suspend fun pullIf(condition: (step: Step) -> Boolean): Any? {
Expand Down

0 comments on commit 746a149

Please sign in to comment.