Skip to content

Commit

Permalink
Include stack from THEOplayerException object
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanlaerhoven committed Oct 15, 2024
1 parent 03330bc commit 2660d46
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ fun flattenErrorObject(error: THEOplayerException): Map<String, String> {
return mapOf(
"code" to error.code.name,
"category" to error.category.name,
"stack" to (error.cause?.stackTraceToString() ?: ""),
"message" to (error.cause?.message ?: "")
"stack" to (error.stackTraceToString()),
"cause.stack" to (error.cause?.stackTraceToString() ?: ""),
"cause.message" to (error.cause?.message ?: "")
).filterValues { it != "" } // Remove entries with empty values
}

0 comments on commit 2660d46

Please sign in to comment.