Log column number in RCTRedBox messages

Reviewed By: @jspahrsummers

Differential Revision: D2489364
This commit is contained in:
Pieter De Baets 2015-09-29 09:06:23 -07:00 committed by facebook-github-bot-4
parent e727fc817b
commit 3a664a0008
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}