Koha-clms/t/Koha
Tomás Cohen Arazi afd530ab0d
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 <brendan@bywatersolutions.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-07-28 16:26:42 -06:00
..
Auth Bug 36561: Add new permission to t/Koha/Auth/Permissions.t test 2025-07-25 14:27:04 -06:00
Authority Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Database Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
DateTime/Format Bug 38944: Manual changes 2025-03-13 17:25:04 +01:00
I18N/po/xx_XX/LC_MESSAGES Bug 29695: Add new module Koha::Database::Columns 2022-04-12 11:40:16 +02:00
Installer Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Middleware Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Object Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Plugins Bug 40444: Add a test to ensure all Perl test files use Test::NoWarnings 2025-07-28 16:26:36 -06:00
REST/Plugin Bug 40423: Unit tests 2025-07-23 16:36:36 -06:00
Result Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
SearchEngine Bug 36947: (QA follow-up) Add skippable unit test for fi_FI locale 2025-07-11 15:26:58 -06:00
Util Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Config.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Email.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Exceptions.t Bug 39632: Extend plugin exceptions with more useful parameters 2025-07-28 16:26:42 -06:00
I18N.t Bug 36947: Add system preference for configurable locale-based facet sorting 2025-07-11 15:26:56 -06:00
ItemType.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Script.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Script_cron.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Z3950responder.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
sleep.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
wait.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00