diff --git a/buildSrc/src/main/kotlin/versioning.kt b/buildSrc/src/main/kotlin/versioning.kt index 28fe357..867ff29 100644 --- a/buildSrc/src/main/kotlin/versioning.kt +++ b/buildSrc/src/main/kotlin/versioning.kt @@ -36,7 +36,8 @@ private fun Project.runCommand(cmd: String, fallback: String? = null): String { } .run { val error = errorStream.bufferedReader().readText().trim() - if (error.isEmpty()) inputStream.bufferedReader().readText().trim() + if (error.isEmpty()) return inputStream.bufferedReader().readText().trim() + logger.warn("Failed to execute command '$cmd': $error") if (fallback != null) return fallback throw IOException(error) }