Track all errors in Sentry

This commit is contained in:
Andy Uhnak
2022-08-22 10:20:36 +01:00
parent 30cb697304
commit a9d1e84252
44 changed files with 128 additions and 74 deletions
+3 -1
View File
@@ -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
}