Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jun 16, 2024
1 parent ecc782d commit 85ab548
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -5813,8 +5813,8 @@ sub print_person
if(scalar(@phrases) == 0) {
$phrase->set($firstname // $pronoun)->append(' ');
}
my $newspaper = newspaper({ gedcom => $ged, person => $person, event => $event });
$phrase->append('appeared in a newspaper');
my $newspaper = newspaper({ gedcom => $ged, person => $person, event => $event });
if(my $date = $newspaper->date()) {
$phrase->append(" on $date");
}
Expand Down Expand Up @@ -6125,8 +6125,9 @@ sub print_person
$phrase = Data::Text->new();
}
} elsif($type eq 'Newspaper') {
# FIMXE: duplicate code with one event
# FIXME: duplicate code with one event
# This is a non-standard thing that FMP has evented.
# FIXME: handle more than one newspaper
if($phrase->length()) {
push @phrases, $phrase;
$phrase = Data::Text->new();
Expand Down Expand Up @@ -12650,7 +12651,7 @@ sub wide_to_html
while((my @call_details = caller($i++))) {
print STDERR "\t", colored($call_details[2] . ' of ' . $call_details[1], 'red'), "\n";
}
die 'BUG: string not set';
die 'BUG: wide_to_html() string not set';
}

# print STDERR __LINE__, ": ($string)";
Expand Down

0 comments on commit 85ab548

Please sign in to comment.