Skip to content

Commit

Permalink
Include command output in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Oct 15, 2023
1 parent 8b0a3b7 commit 7299d59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private fun execute(command: String, args: Array<String>, 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."))
}

Expand Down

0 comments on commit 7299d59

Please sign in to comment.