https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39632
Laura Escamilla <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180942|0 |1 is obsolete| | --- Comment #5 from Laura Escamilla <[email protected]> --- Created attachment 184675 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184675&action=edit Bug 39632: Extend plugin exceptions with more useful parameters This patch tweaks the `Koha::Exceptions::Plugin` class by adding an extra parameter to the plugin install and upgrade related exceptions so they carry the actuall error (if any). * Koha::Exceptions::Plugin::InstallDied: install_error * Koha::Exceptions::Plugin::UpgradeDied: upgrade_error I didn't pick plain 'error' because it is a reserved word for `Exception::Class` which makes it stringify using its value only. To test: 1. Apply this patch 2. Run: $ ktd --shell k$ prove t/Koha/Exceptions.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: Brendan Gallagher <[email protected]> Signed-off-by: Laura_Escamilla <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
