src/download-file/src.main.kts [88:100]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun requiredInput(name: String) = System.getenv("input_$name") ?: error("Input '$name' is not set.") fun input(name: String) = System.getenv("input_$name") ?: "" fun runCatchingWithLogging(block: () -> Unit) = runCatching(block).onFailure { fun writeMessage(text: String, vararg attributes: Pair) = println(asString(MESSAGE, mapOf("text" to text, *attributes))) fun writeDebug(text: String) = writeMessage(text, TAGS_ATRRIBUTE to "tc:internal") fun writeError(text: String) = writeMessage(text, "status" to "ERROR") writeError("$it (Switch to 'Verbose' log level to see stacktrace)") writeDebug(it.stackTraceToString()) kotlin.system.exitProcess(1) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/pin-build/src.main.kts [40:51]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun requiredInput(name: String) = System.getenv("input_$name") ?: error("Input '$name' is not set.") fun input(name: String) = System.getenv("input_$name") ?: "" fun runCatchingWithLogging(block: () -> Unit) = runCatching(block).onFailure { fun writeMessage(text: String, vararg attributes: Pair) = println(asString(MESSAGE, mapOf("text" to text, *attributes))) fun writeDebug(text: String) = writeMessage(text, TAGS_ATRRIBUTE to "tc:internal") fun writeError(text: String) = writeMessage(text, "status" to "ERROR") writeError("$it (Switch to 'Verbose' log level to see stacktrace)") writeDebug(it.stackTraceToString()) kotlin.system.exitProcess(1) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -