Bug 28854: (follow-up) Remove errant warning

Oops, I left in a bare warn from debugging.. this simply removes it; it
is unrequired.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-08-18 09:44:03 +01:00 committed by Tomas Cohen Arazi
parent 218419ce2c
commit 52734ca9be
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 0 additions and 1 deletions

View File

@ -1617,7 +1617,6 @@ sub add_to_bundle {
# FIXME: See if we can move the below copy/paste from Koha::Object::store into it's own class and catch at a lower level in the Schema instantiation, take inspiration from DBIx::Error
if ( ref($_) eq 'DBIx::Class::Exception' ) {
warn $_->{msg};
if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) {
# FK constraints
# FIXME: MySQL error, if we support more DB engines we should implement this for each