1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Better error message.

This commit is contained in:
Cedric Beust 2015-11-10 02:37:50 -08:00
parent c59a4cd4f3
commit 30d9f2c8c5

View file

@ -35,7 +35,7 @@ open class RunCommand(val command: String) {
if (callSucceeded) {
successCb(fromStream(process.inputStream))
} else {
errorCb(listOf("Time out for command $command") + fromStream(process.errorStream))
errorCb(listOf("$command failed") + fromStream(process.errorStream))
}
return if (callSucceeded) 0 else 1