mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Log update validation exception messages before throwing, so user can see them before they bubble up (#2180)
This commit is contained in:
@@ -18,10 +18,12 @@
|
||||
|
||||
#import <unordered_map>
|
||||
|
||||
// NOTE: We log before throwing so they don't have to let it bubble up to see the error.
|
||||
#define ASFailUpdateValidation(...)\
|
||||
if ([ASDisplayNode suppressesInvalidCollectionUpdateExceptions]) {\
|
||||
NSLog(__VA_ARGS__);\
|
||||
} else {\
|
||||
NSLog(__VA_ARGS__);\
|
||||
ASDisplayNodeFailAssert(__VA_ARGS__);\
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user