From 85b1a42ec6a949e1021d84cd7326a6216efa26f0 Mon Sep 17 00:00:00 2001 From: Markus Emrich Date: Mon, 27 Nov 2017 15:58:54 -0800 Subject: [PATCH] Add additional logging of fromClass for convertReloadToDeleteInsert assertion Summary: It's hard to figure out what the problem is, if you don't know which viewModel causes the trouble at all. Let's add the class name to the assertion message. Differential Revision: D6419460 fbshipit-source-id: 58edebca7839871b6d48e463caad957d7920e129 --- Source/IGListAdapterUpdater.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/IGListAdapterUpdater.m b/Source/IGListAdapterUpdater.m index eb72d9a0..b633855d 100644 --- a/Source/IGListAdapterUpdater.m +++ b/Source/IGListAdapterUpdater.m @@ -263,8 +263,8 @@ void convertReloadToDeleteInsert(NSMutableIndexSet *reloads, [inserts addIndex:to]; } else { IGAssert([result.deletes containsIndex:idx], - @"Reloaded section %zi was not found in deletes with from: %zi, to: %zi, deletes: %@", - idx, from, to, deletes); + @"Reloaded section %zi was not found in deletes with from: %zi, to: %zi, deletes: %@, fromClass: %@", + idx, from, to, deletes, [(id)fromObjects[idx] class]); } }]; }