Skip to content

Commit

Permalink
Throw an error when performBatchUpdates fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Aug 2, 2023
1 parent 059c892 commit ab6397d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit ab6397d

Please sign in to comment.