[Koha-bugs] [Bug 24574] Broken MARC records cause "invalid data, cannot decode object" on ISBDdetail and MARCdetail pages.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 22 02:46:05 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24574
--- Comment #9 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Cook from comment #8)
> So I think we should require error-handling everywhere. As Jonathan noted,
> it is painful (in our current architecture), but I don't think that's a
> reason not to do it.
If we used more of a MVC model, it would be easier to do high-level
error-handling, as we could just add a general try/catch in the controllers,
and throw a 500 error or something instead with a message like "Sorry, we had
trouble loading this page. Please do X, Y, Z." But... I don't see us
re-architecting any time soon.
Trying to wrap all existing CGI scripts in a try/catch like that would be a
nightmare too though, since there are so many CGI scripts.
I suppose one option could be to override the DIE signal via $SIG{__DIE__},
although I don't know what consequences that would have in Plack...
I suspect a "catch all" won't be all that feasible.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list