mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge branch 'charlesmchen/decryptionExceptionLogging'
This commit is contained in:
commit
5dc4938746
3 changed files with 11 additions and 5 deletions
|
@ -710,7 +710,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
- (void)processException:(NSException *)exception envelope:(OWSSignalServiceProtosEnvelope *)envelope
|
||||
{
|
||||
OWSAssert([NSThread isMainThread]);
|
||||
DDLogError(@"%@ Got exception: %@ of type: %@", self.tag, exception.description, exception.name);
|
||||
DDLogError(@"%@ Got exception: %@ of type: %@ with reason: %@",
|
||||
self.tag,
|
||||
exception.description,
|
||||
exception.name,
|
||||
exception.reason);
|
||||
[self.dbConnection readWriteWithBlock:^(YapDatabaseReadWriteTransaction *transaction) {
|
||||
TSErrorMessage *errorMessage;
|
||||
|
||||
|
|
|
@ -55,8 +55,9 @@
|
|||
[self preKeyRecordForKey:[self keyFromInt:preKeyId] inCollection:TSStorageManagerPreKeyStoreCollection];
|
||||
|
||||
if (!preKeyRecord) {
|
||||
@throw
|
||||
[NSException exceptionWithName:InvalidKeyIdException reason:@"No key found matching key id" userInfo:@{}];
|
||||
@throw [NSException exceptionWithName:InvalidKeyIdException
|
||||
reason:@"No pre key found matching key id"
|
||||
userInfo:@{}];
|
||||
} else {
|
||||
return preKeyRecord;
|
||||
}
|
||||
|
|
|
@ -38,8 +38,9 @@ NSString *const TSStorageManagerKeyPrekeyCurrentSignedPrekeyId = @"currentSigned
|
|||
inCollection:TSStorageManagerSignedPreKeyStoreCollection];
|
||||
|
||||
if (!preKeyRecord) {
|
||||
@throw
|
||||
[NSException exceptionWithName:InvalidKeyIdException reason:@"No key found matching key id" userInfo:@{}];
|
||||
@throw [NSException exceptionWithName:InvalidKeyIdException
|
||||
reason:@"No signed pre key found matching key id"
|
||||
userInfo:@{}];
|
||||
} else {
|
||||
return preKeyRecord;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue