Skip to content

Commit

Permalink
die on TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 18, 2024
1 parent cb6d25a commit d58638f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -1506,14 +1506,16 @@ sub generate
if(my $marriage = get_marriage($person)) {
if(my $dateofmarriage = $marriage->date()) {
if($dateofmarriage && ($dateofmarriage =~ /^\d+\s\w{3}\s\d{3,4}$/)) {
# FIXME: work with more than one spouse
my @spouses = $person->spouse();
if(scalar(@spouses) == 1) {
add_to_ical(
ical => $ical,
datetime => date_to_datetime(date => $dateofmarriage),
summary => 'Marriage of ' . $person->as_string() . ' and ' . $spouses[0]->as_string()
);
} elsif(scalar(@spouses) > 1) {
# TODO: work with more than one spouse
die 'TODO: more than one spouse';
}
}
}
Expand Down

0 comments on commit d58638f

Please sign in to comment.