From 731e8948906b6dd2729c8db428868efe5d78b1ad Mon Sep 17 00:00:00 2001 From: Maxime Ollivier Date: Fri, 5 Jan 2024 10:42:03 -0800 Subject: [PATCH] add more details to the error message when catching NSInternalInconsistencyException Summary: We want to remove this exception handling, but we're seeing quite a lot of `IGFailure` happening recently. Lets improve the error message to make it easier to debug. Once we get down to a reasonable number, we can remove it. Reviewed By: fabiomassimo Differential Revision: D52564499 fbshipit-source-id: f70ca2f0f0f8124377eeb2a219878dfa019af87c --- Source/IGListKit/Internal/IGListBatchUpdateTransaction.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/IGListKit/Internal/IGListBatchUpdateTransaction.m b/Source/IGListKit/Internal/IGListBatchUpdateTransaction.m index 9cdf98b9c..1516a7442 100644 --- a/Source/IGListKit/Internal/IGListBatchUpdateTransaction.m +++ b/Source/IGListKit/Internal/IGListBatchUpdateTransaction.m @@ -234,7 +234,7 @@ - (void)_applyDiff:(IGListIndexSetResult *)diffResult { /// with our product team to properly fix their data source changes outside of the -performBatchUpdatesBlock: /// IGLisKit processed a new being as an assert that requires investigation, /// since it will be processed as invalid data source state that needs a reload. - IGFailure(@"The data source returned an invalid number of sections and rows due to updates applied outside of the performBatchUpdates block. This will cause a crash."); + IGFailure(@"IGListKit caught exception (%@): %@", exception.name, exception.reason); [self begin]; return; } else {