UCS_udmSuccessOrErrorMessage

Description: Takes the output from an udm command and checks for the return code (must be a single number in the last line). If the return code is non-zero, all lines above the last line are treated as error message and written to $errorMessage.
Parameter:
Returns: