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

View File

@@ -42,7 +42,7 @@ __END_DECLS
NSError *__error = error_; \
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:@{ \
@"location": strf( @"%@:%d %@", @(basename((char *)__FILE__)), __LINE__, NSStringFromSelector(_cmd) ), \
}]; \