81 |
$error_layer = 'syntax'; ## NOTE: Unknown - an error of the implementation |
$error_layer = 'syntax'; ## NOTE: Unknown - an error of the implementation |
82 |
} |
} |
83 |
|
|
|
my $error_type_text = $opt{type}; |
|
|
|
|
84 |
my $class = qq[level-$error_level layer-$error_layer]; |
my $class = qq[level-$error_level layer-$error_layer]; |
85 |
|
|
86 |
## Line & column numbers (prepare values) |
## Line & column numbers (prepare values) |
203 |
$out->text (': '); |
$out->text (': '); |
204 |
|
|
205 |
## Error message |
## Error message |
206 |
$out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text}); |
my $error_type_text = $opt{type}; |
207 |
|
$out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text}, |
208 |
|
value => $opt{value}); |
209 |
|
|
210 |
## Additional error description |
## Additional error description |
211 |
if (defined $opt{text}) { |
if (defined $opt{text}) { ## TODO: Remove this block once all errors are put into the catalog. |
212 |
$out->html (' (<q>'); |
$out->html (' (<q>'); |
213 |
$out->text ($opt{text}); |
$out->text ($opt{text}); |
214 |
$out->html ('</q>)'); |
$out->html ('</q>)'); |
292 |
target => 'transfer-errors', score_base => 20, |
target => 'transfer-errors', score_base => 20, |
293 |
parent_status => $maindoc_status}, |
parent_status => $maindoc_status}, |
294 |
{label => 'Encode L.', status => $self->{layers}->{encode}, |
{label => 'Encode L.', status => $self->{layers}->{encode}, |
295 |
score_base => 10, |
target => 'parse-errors', score_base => 10, |
296 |
parent_status => $maindoc_status}, |
parent_status => $maindoc_status}, |
297 |
{label => 'Char L.', status => $self->{layers}->{charset}, |
{label => 'Char L.', status => $self->{layers}->{charset}, |
298 |
score_base => 10, |
score_base => 10, |