append Exit Status

protected open fun appendExitStatus(errorMessage: String, exitStatus: Int): String

Method used to append the exit status of the command to the error result of the same command

Return

the error message with the exit status as String

Parameters

errorMessage

The error message retrieved from the shell

exitStatus

The exit status of the command