2
0

Don't pass nil error to crashlytics.

This commit is contained in:
Maarten Billemont 2017-08-13 16:49:56 -04:00
parent b9cbaf7343
commit 661fc523ad
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 105891a553f5a812a44ef12269ca5c815f74a767 Subproject commit f554039946f9036cb200b12fe09105b6db7bcc33

View File

@ -42,7 +42,7 @@ __END_DECLS
NSError *__error = error_; \ NSError *__error = error_; \
err( message @"%@%@", ##__VA_ARGS__, __error && [message length]? @"\n": @"", [__error fullDescription]?: @"" ); \ err( message @"%@%@", ##__VA_ARGS__, __error && [message length]? @"\n": @"", [__error fullDescription]?: @"" ); \
\ \
if ([[MPConfig get].sendInfo boolValue]) { \ if (__error && [[MPConfig get].sendInfo boolValue]) { \
[[Crashlytics sharedInstance] recordError:__error withAdditionalUserInfo:@{ \ [[Crashlytics sharedInstance] recordError:__error withAdditionalUserInfo:@{ \
@"location": strf( @"%@:%d %@", @(basename((char *)__FILE__)), __LINE__, NSStringFromSelector(_cmd) ), \ @"location": strf( @"%@:%d %@", @(basename((char *)__FILE__)), __LINE__, NSStringFromSelector(_cmd) ), \
}]; \ }]; \