Don't pass nil error to crashlytics.
This commit is contained in:
parent
b9cbaf7343
commit
661fc523ad
2
platform-darwin/External/libjson-c
vendored
2
platform-darwin/External/libjson-c
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 105891a553f5a812a44ef12269ca5c815f74a767
|
Subproject commit f554039946f9036cb200b12fe09105b6db7bcc33
|
@ -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) ), \
|
||||||
}]; \
|
}]; \
|
||||||
|
Loading…
Reference in New Issue
Block a user