case cib_missing_data: error_msg = "Required data for this CIB API call not found"; break;
cib_error2string(enum cib_errors return_code){	const char *error_msg = NULL;	switch(return_code) {		case cib_msg_field_add:			error_msg = "failed adding field to cib message";			break;					case cib_operation:			error_msg = "invalid operation";			break;		case cib_create_msg:			error_msg = "couldnt create cib message";			break;		case cib_client_gone:			error_msg = "client left before we could send reply";			break;		case cib_not_connected:			error_msg = "not connected";			break;		case cib_not_authorized:			error_msg = "not authorized";			break;		case cib_send_failed:			error_msg = "send failed";			break;		case cib_reply_failed:			error_msg = "reply failed";			break;		case cib_return_code:			error_msg = "no return code";			break;		case cib_output_ptr:			error_msg = "nowhere to store output";			break;		case cib_output_data:			error_msg = "corrupt output data";			break;		case cib_connection:			error_msg = "connection failed";			break;		case cib_callback_register:			error_msg = "couldnt register callback channel";			break;		case cib_authentication:			error_msg = "";			break;		case cib_registration_msg:			error_msg = "invalid registration msg";			break;		case cib_callback_token:			error_msg = "callback token not found";			break;		case cib_missing:			error_msg = "cib object missing";			break;		case cib_variant:			error_msg = "unknown/corrupt cib variant";			break;		case CIBRES_MISSING_ID:			error_msg = "The id field is missing";			break;		case CIBRES_MISSING_TYPE:			error_msg = "The type field is missing";			break;		case CIBRES_MISSING_FIELD:			error_msg = "A required field is missing";			break;		case CIBRES_OBJTYPE_MISMATCH:			error_msg = "CIBRES_OBJTYPE_MISMATCH";			break;		case cib_EXISTS:			error_msg = "The object already exists";			break;		case cib_NOTEXISTS:			error_msg = "The object does not exist";			break;		case CIBRES_CORRUPT:			error_msg = "The CIB is corrupt";			break;		case cib_NOOBJECT:			error_msg = "The update was empty";			break;		case cib_NOPARENT:			error_msg = "The parent object does not exist";			break;		case cib_NODECOPY:			error_msg = "Failed while copying update";			break;		case CIBRES_OTHER:			error_msg = "CIBRES_OTHER";			break;		case cib_ok:			error_msg = "ok";			break;		case cib_unknown:			error_msg = "Unknown error";			break;		case cib_STALE:			error_msg = "Discarded old update";			break;		case cib_ACTIVATION:			error_msg = "Activation Failed";			break;		case cib_NOSECTION:			error_msg = "Required section was missing";			break;		case cib_NOTSUPPORTED:			error_msg = "Supplied information is not supported";			break;		case cib_not_master:			error_msg = "Local service is not the master instance";			break;		case cib_client_corrupt:			error_msg = "Service client not valid";			break;		case cib_master_timeout:			error_msg = "No master service is currently active";			break;		case cib_revision_unsupported:			error_msg = "The required CIB revision number is not supported";			break;		case cib_revision_unknown:			error_msg = "The CIB revision number could not be determined";			break;	}				if(error_msg == NULL) {		crm_err("Unknown CIB Error Code: %d", return_code);		error_msg = "<unknown error>";	}		return error_msg;}