diff --git a/generator/src/main/kotlin/com/kylemayes/generator/support/Command.kt b/generator/src/main/kotlin/com/kylemayes/generator/support/Command.kt index 6be373c..990ccbd 100644 --- a/generator/src/main/kotlin/com/kylemayes/generator/support/Command.kt +++ b/generator/src/main/kotlin/com/kylemayes/generator/support/Command.kt @@ -62,7 +62,7 @@ private fun execute(command: String, args: Array, input: String? = null) process.waitFor(1, TimeUnit.SECONDS) process.destroyForcibly() val executed = "$command ${args.joinToString(" ")}".trim() - val message = "Failed to execute command ('$executed')." + val message = "Failed to execute command ('$executed'):\n${outputValue}" throw RuntimeException(message, errorValue ?: RuntimeException("Timed out.")) }