@@ -, +, @@ --- Koha/Exceptions/Patron/Attribute.pm | 4 ++-- t/Koha/Exceptions.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/Koha/Exceptions/Patron/Attribute.pm +++ a/Koha/Exceptions/Patron/Attribute.pm @@ -32,14 +32,14 @@ sub full_message { unless ( $msg) { if ( $self->isa('Koha::Exceptions::Patron::Attribute::NonRepeatable') ) { $msg = sprintf( - "Tried to add more than one non-repeatable attributes. code=%s attribute=%s", + "Tried to add more than one non-repeatable attributes. type=%s value=%s", $self->attribute->code, $self->attribute->attribute ); } elsif ( $self->isa('Koha::Exceptions::Patron::Attribute::UniqueIDConstraint') ) { $msg = sprintf( - "Your action breaks a unique constraint on the attribute. code=%s attribute=%s", + "Your action breaks a unique constraint on the attribute. type=%s value=%s", $self->attribute->code, $self->attribute->attribute ); --- a/t/Koha/Exceptions.t +++ a/t/Koha/Exceptions.t @@ -220,7 +220,7 @@ subtest 'Koha::Exceptions::Patron::Attribute::* tests' => sub { # stringify the exception is( "$@", - "Tried to add more than one non-repeatable attributes. code=$code attribute=$attribute", + "Tried to add more than one non-repeatable attributes. type=$code value=$attribute", 'Exception stringified correctly' ); @@ -244,7 +244,7 @@ subtest 'Koha::Exceptions::Patron::Attribute::* tests' => sub { # stringify the exception is( "$@", - "Your action breaks a unique constraint on the attribute. code=$code attribute=$attribute", + "Your action breaks a unique constraint on the attribute. type=$code value=$attribute", 'Exception stringified correctly' ); --