From ab6397dba95697db4d66ad3e18ae768927792fca Mon Sep 17 00:00:00 2001 From: kean Date: Wed, 2 Aug 2023 17:51:35 -0400 Subject: [PATCH] Throw an error when performBatchUpdates fails --- .../Views/ReaderDetailCommentsTableViewDelegate.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Reader/Detail/Views/ReaderDetailCommentsTableViewDelegate.swift b/WordPress/Classes/ViewRelated/Reader/Detail/Views/ReaderDetailCommentsTableViewDelegate.swift index 35f299027706..77d83f4a5d7a 100644 --- a/WordPress/Classes/ViewRelated/Reader/Detail/Views/ReaderDetailCommentsTableViewDelegate.swift +++ b/WordPress/Classes/ViewRelated/Reader/Detail/Views/ReaderDetailCommentsTableViewDelegate.swift @@ -83,8 +83,12 @@ class ReaderDetailCommentsTableViewDelegate: NSObject, UITableViewDataSource, UI } cell.configureForPostDetails(with: comment) { _ in - try? WPException.objcTry { - tableView.performBatchUpdates({}) + do { + try WPException.objcTry { + tableView.performBatchUpdates({}) + } + } catch { + WordPressAppDelegate.crashLogging?.logError(error) } }