Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
Output pkg-config error
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Dec 1, 2023
1 parent a496cb4 commit 8edf5c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ fun pkgConfig(
val process: Process = process_builder.start()
process.waitFor(10, TimeUnit.SECONDS)

check(process.exitValue() == 0) { "pkg-config failed with package_names: ${package_names.toList()}" }
check(process.exitValue() == 0) {
process.errorStream
"pkg-config failed with package_names: ${package_names.toList()}\n" + process.errorStream.bufferedReader().use { it.readText() }
}

return process.inputStream.bufferedReader().use { reader ->
reader.readText().split(" ").mapNotNull { it.trim().takeIf { it.isNotBlank() } }
Expand Down

0 comments on commit 8edf5c4

Please sign in to comment.