46 |
$out->end_section |
$out->end_section |
47 |
} # generate_structure_dump_section |
} # generate_structure_dump_section |
48 |
|
|
49 |
|
sub generate_structure_error_section ($) { |
50 |
|
my $self = shift; |
51 |
|
|
52 |
|
my $out = $self->output; |
53 |
|
|
54 |
|
$out->start_section (role => 'structure-errors'); |
55 |
|
$out->start_error_list (role => 'structure-errors'); |
56 |
|
|
57 |
|
$self->{structure}->check (sub { |
58 |
|
$self->result->add_error (@_, layer => 'structure'); |
59 |
|
}); |
60 |
|
|
61 |
|
$out->end_error_list (role => 'structure-errors'); |
62 |
|
$out->end_section; |
63 |
|
} # generate_structure_error_section |
64 |
|
|
65 |
1; |
1; |