Skip to content

Commit

Permalink
Send error with fetch device failure pixel (#3546)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1208738052951188/f

**Description**:

The pixel `sync_refresh_devices_error` didn't include the error
parameter due to confusion about how the slightly newer PixelKit types
do this. This PR just includes the error.
  • Loading branch information
graeme authored Nov 14, 2024
1 parent f946f07 commit f52780f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/Preferences/Model/SyncPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ final class SyncPreferences: ObservableObject, SyncUI.ManagementViewModel {
let registeredDevices = try await syncService.fetchDevices()
mapDevices(registeredDevices)
} catch {
PixelKit.fire(DebugEvent(GeneralPixel.syncRefreshDevicesError(error: error)))
PixelKit.fire(DebugEvent(GeneralPixel.syncRefreshDevicesError(error: error), error: error))
Logger.sync.debug("Failed to refresh devices: \(error)")
}
}
Expand Down

0 comments on commit f52780f

Please sign in to comment.