You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-22 09:02:11 +03:00
Add logging for a bunch of silently swallowed errors (#7148)
This commit is contained in:
@@ -317,7 +317,9 @@ export default abstract class BasePlatform {
|
||||
let data;
|
||||
try {
|
||||
data = await idbLoad("pickleKey", [userId, deviceId]);
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
logger.error("idbLoad for pickleKey failed", e);
|
||||
}
|
||||
if (!data) {
|
||||
return null;
|
||||
}
|
||||
@@ -396,6 +398,8 @@ export default abstract class BasePlatform {
|
||||
async destroyPickleKey(userId: string, deviceId: string): Promise<void> {
|
||||
try {
|
||||
await idbDelete("pickleKey", [userId, deviceId]);
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
logger.error("idbDelete failed in destroyPickleKey", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user