From bdb67725c55e502866c4f8c4cd86402b06e6c446 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 6 Sep 2017 13:56:09 -0700 Subject: [PATCH] Add additional debug information for mysterious stack trace Related #6923 // FREEBIE --- .../securesms/crypto/storage/TextSecurePreKeyStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/crypto/storage/TextSecurePreKeyStore.java b/src/org/thoughtcrime/securesms/crypto/storage/TextSecurePreKeyStore.java index 3e27dd6019..d9f3d2981c 100644 --- a/src/org/thoughtcrime/securesms/crypto/storage/TextSecurePreKeyStore.java +++ b/src/org/thoughtcrime/securesms/crypto/storage/TextSecurePreKeyStore.java @@ -83,7 +83,7 @@ public class TextSecurePreKeyStore implements PreKeyStore, SignedPreKeyStore { results.add(new SignedPreKeyRecord(loadSerializedRecord(signedPreKeyFile))); } } catch (IOException | InvalidMessageException e) { - Log.w(TAG, e); + Log.w(TAG, signedPreKeyFile.getAbsolutePath(), e); } } @@ -184,7 +184,7 @@ public class TextSecurePreKeyStore implements PreKeyStore, SignedPreKeyStore { MasterCipher masterCipher = new MasterCipher(masterSecret); serializedRecord = masterCipher.decryptBytes(serializedRecord); } else if (recordVersion < PLAINTEXT_VERSION) { - throw new AssertionError("Migration didn't happen!"); + throw new AssertionError("Migration didn't happen! " + recordFile.getAbsolutePath() + ", " + recordVersion); } fin.close();