Skip to content

Commit

Permalink
add error stringkey/code tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
aforaleka committed Apr 22, 2024
1 parent 5525080 commit 82fdc6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1448,10 +1448,11 @@ class V4StateManagerAdaptor(
)
}

private fun errorTrackingParams(error: ParsingError): IMap<String, Any> {
private fun errorTrackingParams(error: ParsingError): IMap<String, Any?> {
return iMapOf(
"errorType" to error.type.rawValue,
"errorMessage" to error.message,
"errorStringKey" to error.stringKey,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,11 @@ internal class SubaccountSupervisor(
)
}

private fun errorTrackingParams(error: ParsingError): IMap<String, Any> {
private fun errorTrackingParams(error: ParsingError): IMap<String, Any?> {
return iMapOf(
"errorType" to error.type.rawValue,
"errorMessage" to error.message,
"errorStringKey" to error.stringKey,
)
}

Expand Down

0 comments on commit 82fdc6d

Please sign in to comment.