1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Fix error logging

This commit is contained in:
David Baker
2018-04-11 16:02:56 +01:00
parent 3eb9505633
commit c4f52f6256

View File

@@ -394,9 +394,9 @@ export class Backend {
const addReq = objectStore.add({
senderCurve25519Key, sessionId, session: sessionData,
});
addReq.onerror = (e) => {
addReq.onerror = () => {
abortWithException(txn, new Error(
"Failed to add inbound group session - session may already exist: " + e,
"Failed to add inbound group session - session may already exist: " + addReq.error,
));
};
}