Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -143,11 +143,16 @@ public String formatLine(List<Activation> activations, int n) {
final Activation activation = activations.get(n);
final SourceSection sourceSection = activation.getCallNode().getEncapsulatingSourceSection();
final SourceSection reportedSourceSection;
final String reportedName;
String reportedName;

if (isCore(sourceSection) && !flags.contains(FormattingFlags.INCLUDE_CORE_FILES)) {
reportedSourceSection = nextUserSourceSection(activations, n);
reportedName = RubyArguments.getMethod(activation.getMaterializedFrame().getArguments()).getName();

try {
reportedName = RubyArguments.getMethod(activation.getMaterializedFrame().getArguments()).getName();
} catch (Exception e) {
reportedName = "???";
}
} else {
reportedSourceSection = sourceSection;
reportedName = sourceSection.getIdentifier();

0 comments on commit d2c5a62

Please sign in to comment.