Bug 19828: (QA follow-up) Fix rethrowing exception and move rethrowing out of 'if' statement just in case the exception does not came from DBIx::Class

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Josef Moravec 2017-12-22 07:43:39 +00:00 committed by Jonathan Druart
parent 4fc594bcb4
commit 786086cfcf
1 changed files with 2 additions and 2 deletions

View File

@ -142,9 +142,9 @@ sub store {
duplicate_id => $+{key}
);
}
# Catch-all for foreign key breakages. It will help find other use cases
$->rethrow();
}
# Catch-all for foreign key breakages. It will help find other use cases
$_->rethrow();
}
}