specify recipient when profile download fails

pull/1/head
Michael Kirk 7 years ago
parent 209e79ce34
commit 0aca0c15c1

@ -1180,13 +1180,14 @@ typedef void (^ProfileManagerFailureBlock)(NSError *error);
[self downloadAvatarForUserProfile:latestUserProfile];
}
} else if (error) {
OWSLogError(@"avatar download failed: %@", error);
OWSLogError(@"avatar download for %@ failed with error: %@", userProfile.recipientId, error);
} else if (!encryptedData) {
OWSLogError(@"avatar encrypted data could not be read.");
OWSLogError(@"avatar encrypted data for %@ could not be read.", userProfile.recipientId);
} else if (!decryptedData) {
OWSLogError(@"avatar data could not be decrypted.");
OWSLogError(@"avatar data for %@ could not be decrypted.", userProfile.recipientId);
} else if (!image) {
OWSLogError(@"avatar image could not be loaded: %@", error);
OWSLogError(
@"avatar image for %@ could not be loaded with error: %@", userProfile.recipientId, error);
} else {
[self updateProfileAvatarCache:image filename:fileName];

Loading…
Cancel
Save