Skip to content

Commit

Permalink
Merge branch 'graeme/add-wireguard-pixels' into graeme/add-netp-featu…
Browse files Browse the repository at this point in the history
…re-usage-pixels
  • Loading branch information
graeme committed Sep 20, 2023
2 parents 045a2d4 + 22d0dae commit f619d7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Core/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -791,12 +791,14 @@ extension Pixel.Event {
case .networkProtectionTunnelConfigurationCouldNotSelectClosestServer: return "m_netp_tunnel_config_error_could_not_select_closest_server"
case .networkProtectionTunnelConfigurationCouldNotGetPeerPublicKey: return "m_netp_tunnel_config_error_could_not_get_peer_public_key"
case .networkProtectionTunnelConfigurationCouldNotGetPeerHostName: return "m_netp_tunnel_config_error_could_not_get_peer_host_name"
case .networkProtectionTunnelConfigurationCouldNotGetInterfaceAddressRange: return "m_netp_tunnel_config_error_could_not_get_interface_address_range"
case .networkProtectionTunnelConfigurationCouldNotGetInterfaceAddressRange:
return "m_netp_tunnel_config_error_could_not_get_interface_address_range"
case .networkProtectionClientFailedToFetchServerList: return "m_netp_backend_api_error_failed_to_fetch_server_list"
case .networkProtectionClientFailedToParseServerListResponse: return "m_netp_backend_api_error_parsing_server_list_response_failed"
case .networkProtectionClientFailedToEncodeRegisterKeyRequest: return "m_netp_backend_api_error_encoding_register_request_body_failed"
case .networkProtectionClientFailedToFetchRegisteredServers: return "m_netp_backend_api_error_failed_to_fetch_registered_servers"
case .networkProtectionClientFailedToParseRegisteredServersResponse: return "m_netp_backend_api_error_parsing_device_registration_response_failed"
case .networkProtectionClientFailedToParseRegisteredServersResponse:
return "m_netp_backend_api_error_parsing_device_registration_response_failed"
case .networkProtectionClientFailedToEncodeRedeemRequest: return "m_netp_backend_api_error_encoding_redeem_request_body_failed"
case .networkProtectionClientInvalidInviteCode: return "m_netp_backend_api_error_invalid_invite_code"
case .networkProtectionClientFailedToRedeemInviteCode: return "m_netp_backend_api_error_failed_to_redeem_invite_code"
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGo/EventMapping+NetworkProtectionError.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//
// EventMapping+NetworkProtectionError.swift
// DuckDuckGo
//
// Copyright © 2023 DuckDuckGo. All rights reserved.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ final class NetworkProtectionPacketTunnelProvider: PacketTunnelProvider {

public override func startTunnel(options: [String: NSObject]?, completionHandler: @escaping (Error?) -> Void) {
super.startTunnel(options: options) { error in
DailyPixel.fireDailyAndCount(pixel: .networkProtectionFailedToStartTunnel, error: error)
if error != nil {
DailyPixel.fireDailyAndCount(pixel: .networkProtectionFailedToStartTunnel, error: error)
}
completionHandler(error)
}
}
Expand Down

0 comments on commit f619d7c

Please sign in to comment.