Avoid using longstring type for errorMessage, until marshalling is fixed.