mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 07:35:25 +00:00
Log column number in RCTRedBox messages
Reviewed By: @jspahrsummers Differential Revision: D2489364
This commit is contained in:
parent
e727fc817b
commit
3a664a0008
@ -193,9 +193,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
}
|
||||
|
||||
cell.textLabel.text = stackFrame[@"methodName"];
|
||||
|
||||
NSString *fileAndLine = [stackFrame[@"file"] lastPathComponent];
|
||||
cell.detailTextLabel.text = fileAndLine ? [fileAndLine stringByAppendingFormat:@":%@", stackFrame[@"lineNumber"]] : nil;
|
||||
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ @ %@:%@",
|
||||
[stackFrame[@"file"] lastPathComponent], stackFrame[@"lineNumber"], stackFrame[@"column"]];
|
||||
return cell;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user