Add error message when creating sende keys path fails

This commit is contained in:
AsamK 2021-12-23 13:43:53 +01:00
parent bddff2cb88
commit 6fcec33ab6

View file

@ -181,7 +181,7 @@ public class SenderKeyRecordStore implements org.whispersystems.libsignal.groups
try { try {
IOUtils.createPrivateDirectories(senderKeysPath); IOUtils.createPrivateDirectories(senderKeysPath);
} catch (IOException e) { } catch (IOException e) {
throw new AssertionError("Failed to create sender keys path", e); throw new AssertionError("Failed to create sender keys path: " + e.getMessage(), e);
} }
return new File(senderKeysPath, return new File(senderKeysPath,
key.recipientId().id() + "_" + key.deviceId() + "_" + key.distributionId.toString()); key.recipientId().id() + "_" + key.deviceId() + "_" + key.distributionId.toString());