https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19871 --- Comment #36 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 191272 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191272&action=edit Bug 19871: Make exception handling more explicit in add_to_bundle Replace the implicit exception translation call with an explicit safe_do pattern that clearly shows exceptions are rethrown. Changes: - Use $schema->safe_do() wrapper for automatic exception translation - Add explicit $_->rethrow() in catch block for clarity - Follow the same pattern used in Koha::Patron::Modification::approve() - Make control flow more obvious to future maintainers This change maintains identical behavior while improving code clarity by making it explicit that the catch block never returns normally. -- You are receiving this mail because: You are watching all bug changes.