mirror of
https://github.com/status-im/react-native.git
synced 2025-02-20 13:18:07 +00:00
Cleanup RedBox display of native errors
Reviewed By: nicklockwood Differential Revision: D2615507 fb-gh-sync-id: 94f8013b418a3b95508cc55b9302fde4325bfcbf
This commit is contained in:
parent
7fec60e6c4
commit
05996963c9
@ -193,8 +193,14 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
|||||||
}
|
}
|
||||||
|
|
||||||
cell.textLabel.text = stackFrame[@"methodName"];
|
cell.textLabel.text = stackFrame[@"methodName"];
|
||||||
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ @ %@:%@",
|
if (stackFrame[@"file"]) {
|
||||||
[stackFrame[@"file"] lastPathComponent], stackFrame[@"lineNumber"], stackFrame[@"column"]];
|
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ @ %zd:%zd",
|
||||||
|
[stackFrame[@"file"] lastPathComponent],
|
||||||
|
[stackFrame[@"lineNumber"] integerValue],
|
||||||
|
[stackFrame[@"column"] integerValue]];
|
||||||
|
} else {
|
||||||
|
cell.detailTextLabel.text = @"";
|
||||||
|
}
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user