func checkUnsupportedResponseMessage(message *gauge_messages.Message) error { if message.GetMessageType() == gauge_messages.Message_UnsupportedMessageResponse { return fmt.Errorf("Unsupported Message response received. Message not supported. %s", message.GetUnsupportedMessageResponse().GetMessage()) } return nil }