Skip to content

Commit

Permalink
AND-8875 Added error description field to staking error event.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sateetas committed Oct 24, 2024
1 parent 9172245 commit 3b6bcdf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ internal sealed class StakingAnalyticsEvents(
event = "Errors",
params = mapOf(
AnalyticsParam.TOKEN_PARAM to token,
AnalyticsParam.ERROR_TYPE to if (stakeKitError is StakingError.UnknownError) {
stakeKitError.message ?: "Unknown"
if (stakeKitError is StakingError.UnknownError) {
AnalyticsParam.ERROR_DESCRIPTION to (stakeKitError.message ?: "Unknown")
} else {
stakeKitError.javaClass.simpleName
},
AnalyticsParam.ERROR_TYPE to stakeKitError.javaClass.simpleName
}
),
)

Expand Down

0 comments on commit 3b6bcdf

Please sign in to comment.