mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Track all errors in Sentry
This commit is contained in:
@@ -31,7 +31,9 @@ extension DictionaryEncodable {
|
||||
let object = try JSONSerialization.jsonObject(with: jsonData)
|
||||
|
||||
guard let dictionary = object as? [String: Any] else {
|
||||
MXLog.error("[DictionaryEncodable] Unexpected type decoded \(type(of: object)). Expected a Dictionary.")
|
||||
MXLog.error("[DictionaryEncodable] Unexpected type decoded, expected a Dictionary.", context: [
|
||||
"type": type(of: object)
|
||||
])
|
||||
throw DictionaryEncodableError.typeError
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user