]> git.koha-community.org Git - koha.git/commit
Bug 23075: Better error handling in Mana config
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 8 Jun 2019 18:57:05 +0000 (13:57 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sat, 15 Jun 2019 06:51:30 +0000 (07:51 +0100)
commitadb30fb8a0347ab6ff391238a8bd1ce4b6931fcd
tree6477c358f093a7a28affb8e95d381dbbb90c4183
parent4452273669c98bcbaf409dc653d01d5596ca415a
Bug 23075: Better error handling in Mana config

Currently, if you input an incorrect mana service URL in your config
(http rather than https for example) the error message you are given is
the direct output of a failed json parse.  We should be able to catch
such failures and display a more meaningful error to the end user.

This patch makes it display a more friendly message.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/SharedContent.pm
koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt