Add dots to the event description

This commit is contained in:
Sergey Abramchuk
2017-06-02 14:50:24 +03:00
parent db8424c620
commit d2ddcbbd5b
+15 -15
View File
@@ -627,21 +627,21 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
- (NSString *)getDescriptionForErrorEvent:(OpenVPNEvent)event { - (NSString *)getDescriptionForErrorEvent:(OpenVPNEvent)event {
switch (event) { switch (event) {
case OpenVPNEventTransportError: return @"General transport error"; case OpenVPNEventTransportError: return @"General transport error.";
case OpenVPNEventTunError: return @"General tun error"; case OpenVPNEventTunError: return @"General tun error.";
case OpenVPNEventClientRestart: return @"RESTART message from server received"; case OpenVPNEventClientRestart: return @"RESTART message from server received.";
case OpenVPNEventAuthFailed: return @"General authentication failure"; case OpenVPNEventAuthFailed: return @"General authentication failure.";
case OpenVPNEventCertVerifyFail: return @"Peer certificate verification failure"; case OpenVPNEventCertVerifyFail: return @"Peer certificate verification failure.";
case OpenVPNEventTLSVersionMin: return @"Peer cannot handshake at our minimum required TLS version"; case OpenVPNEventTLSVersionMin: return @"Peer cannot handshake at our minimum required TLS version.";
case OpenVPNEventClientHalt: return @"HALT message from server received"; case OpenVPNEventClientHalt: return @"HALT message from server received.";
case OpenVPNEventConnectionTimeout: return @"Connection failed to establish within given time"; case OpenVPNEventConnectionTimeout: return @"Connection failed to establish within given time.";
case OpenVPNEventInactiveTimeout: return @"Disconnected due to inactive timer"; case OpenVPNEventInactiveTimeout: return @"Disconnected due to inactive timer.";
case OpenVPNEventProxyNeedCreds: return @"HTTP proxy needs credentials"; case OpenVPNEventProxyNeedCreds: return @"HTTP proxy needs credentials.";
case OpenVPNEventProxyError: return @"HTTP proxy error"; case OpenVPNEventProxyError: return @"HTTP proxy error.";
case OpenVPNEventTunSetupFailed: return @"Error setting up TUN interface"; case OpenVPNEventTunSetupFailed: return @"Error setting up TUN interface.";
case OpenVPNEventTunIfaceCreate: return @"Error creating TUN interface"; case OpenVPNEventTunIfaceCreate: return @"Error creating TUN interface.";
case OpenVPNEventTunIfaceDisabled: return @"TUN interface is disabled"; case OpenVPNEventTunIfaceDisabled: return @"TUN interface is disabled.";
case OpenVPNEventRelayError: return @"RELAY error"; case OpenVPNEventRelayError: return @"RELAY error.";
default: return nil; default: return nil;
} }