Lines 25-31
use Exception::Class (
Link Here
|
25 |
'Koha::Exceptions::Metadata::Invalid' => { |
25 |
'Koha::Exceptions::Metadata::Invalid' => { |
26 |
isa => 'Koha::Exceptions::Metadata', |
26 |
isa => 'Koha::Exceptions::Metadata', |
27 |
description => 'Invalid data', |
27 |
description => 'Invalid data', |
28 |
fields => ['id','format','schema'] |
28 |
fields => ['id','format','schema', 'marcxml_error'] |
29 |
} |
29 |
} |
30 |
); |
30 |
); |
31 |
|
31 |
|
Lines 36-43
sub full_message {
Link Here
|
36 |
|
36 |
|
37 |
unless ($msg) { |
37 |
unless ($msg) { |
38 |
if ( $self->isa('Koha::Exceptions::Metadata::Invalid') ) { |
38 |
if ( $self->isa('Koha::Exceptions::Metadata::Invalid') ) { |
39 |
$msg = sprintf( "Invalid data, cannot decode object (id=%s, format=%s, schema=%s)", |
39 |
$msg = sprintf( "Invalid data, cannot decode object (id=%s, format=%s, schema=%s, MARCXML error='%s')", |
40 |
$self->id, $self->format, $self->schema ); |
40 |
$self->id, $self->format, $self->schema, $self->marcxml_error ); |
41 |
} |
41 |
} |
42 |
} |
42 |
} |
43 |
|
43 |
|
44 |
- |
|
|