Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
aforaleka committed Apr 22, 2024
1 parent e55d092 commit 7d30473
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1448,11 +1448,12 @@ class V4StateManagerAdaptor(
)
}

private fun errorTrackingParams(error: ParsingError): IMap<String, Any?> {
private fun errorTrackingParams(error: ParsingError): IMap<String, Any> {
val errorStringKey = error.stringKey
return iMapOf(
"errorType" to error.type.rawValue,
"errorMessage" to error.message,
"errorStringKey" to error.stringKey,
*if (errorStringKey != null) arrayOf("errorStringKey" to errorStringKey) else emptyArray()
)
}

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

private fun errorTrackingParams(error: ParsingError): IMap<String, Any?> {
private fun errorTrackingParams(error: ParsingError): IMap<String, Any> {
val errorStringKey = error.stringKey
return iMapOf(
"errorType" to error.type.rawValue,
"errorMessage" to error.message,
"errorStringKey" to error.stringKey,
*if (errorStringKey != null) arrayOf("errorStringKey" to errorStringKey) else emptyArray()
)
}

Expand Down

0 comments on commit 7d30473

Please sign in to comment.