Skip to content

Commit 40f0724

Browse files
committed
Fix versioning
1 parent c16c16a commit 40f0724

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: buildSrc/src/main/kotlin/versioning.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ private fun Project.runCommand(cmd: String, fallback: String? = null): String {
3636
}
3737
.run {
3838
val error = errorStream.bufferedReader().readText().trim()
39-
if (error.isEmpty()) inputStream.bufferedReader().readText().trim()
39+
if (error.isEmpty()) return inputStream.bufferedReader().readText().trim()
40+
logger.warn("Failed to execute command '$cmd': $error")
4041
if (fallback != null) return fallback
4142
throw IOException(error)
4243
}

0 commit comments

Comments
 (0)