Skip to content

Commit

Permalink
[ReactNative] Don't log invalid utf8 strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeuzagallo committed Apr 29, 2015
1 parent 96850b7 commit 483077d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions React/Base/RCTUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ id RCTJSONParse(NSString *jsonString, NSError **error)
if (jsonData) {
RCTLogWarn(@"RCTJSONParse received the following string, which could not be losslessly converted to UTF8 data: '%@'", jsonString);
} else {
// If our backup conversion fails, log the issue so we can see what strings are causing this (t6452813)
RCTLogError(@"RCTJSONParse received the following string, which could not be converted to UTF8 data: '%@'", jsonString);
RCTLogError(@"RCTJSONParse received invalid UTF8 data");
return nil;
}
}
Expand Down

0 comments on commit 483077d

Please sign in to comment.