[Koha-bugs] [Bug 29857] We must stringify our exceptions correctly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 31 16:17:54 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29857

--- Comment #8 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 130008
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130008&action=edit
Bug 29857: Provide a generic full_message method for our exceptions

We pass useful information when throwing exceptions, but we don't
display them! We must display all the details we need when the exception
is stringified.

Test plan:

Use the following snippet:
  use Koha::Exceptions::Elasticsearch;
  Koha::Exceptions::Elasticsearch::BadResponse->throw( type => "a good type",
details => "and some details" );

Execute it without and with the patch.

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list