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:
parent
4fc594bcb4
commit
786086cfcf
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue