Lines 32-45
sub full_message {
Link Here
|
32 |
unless ( $msg) { |
32 |
unless ( $msg) { |
33 |
if ( $self->isa('Koha::Exceptions::Patron::Attribute::NonRepeatable') ) { |
33 |
if ( $self->isa('Koha::Exceptions::Patron::Attribute::NonRepeatable') ) { |
34 |
$msg = sprintf( |
34 |
$msg = sprintf( |
35 |
"Tried to add more than one non-repeatable attributes. code=%s attribute=%s", |
35 |
"Tried to add more than one non-repeatable attributes. type=%s value=%s", |
36 |
$self->attribute->code, |
36 |
$self->attribute->code, |
37 |
$self->attribute->attribute |
37 |
$self->attribute->attribute |
38 |
); |
38 |
); |
39 |
} |
39 |
} |
40 |
elsif ( $self->isa('Koha::Exceptions::Patron::Attribute::UniqueIDConstraint') ) { |
40 |
elsif ( $self->isa('Koha::Exceptions::Patron::Attribute::UniqueIDConstraint') ) { |
41 |
$msg = sprintf( |
41 |
$msg = sprintf( |
42 |
"Your action breaks a unique constraint on the attribute. code=%s attribute=%s", |
42 |
"Your action breaks a unique constraint on the attribute. type=%s value=%s", |
43 |
$self->attribute->code, |
43 |
$self->attribute->code, |
44 |
$self->attribute->attribute |
44 |
$self->attribute->attribute |
45 |
); |
45 |
); |