diff --git a/ts/util/ensureAttachmentIsReencryptable.ts b/ts/util/ensureAttachmentIsReencryptable.ts index 252e783cb8a2..af334b6395d1 100644 --- a/ts/util/ensureAttachmentIsReencryptable.ts +++ b/ts/util/ensureAttachmentIsReencryptable.ts @@ -58,8 +58,9 @@ export async function ensureAttachmentIsReencryptable( logging.info( `${logId}: Unable to reencrypt attachment to original digest; must have had non-zero padding` ); + } else { + logging.error(`${logId}: error when reencrypting`, toLogFormat(e)); } - logging.error(`${logId}: error when reencrypting`, toLogFormat(e)); } }