https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25504
Tomás Cohen Arazi <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #104884|0 |1 is obsolete| | --- Comment #3 from Tomás Cohen Arazi <[email protected]> --- Created attachment 104894 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104894&action=edit Bug 25504: Crash with the original error if API spec are invalid Bug 24700 put the whole spec validation into a try catch block that hides the original error raised by the JSON validator. If you don't have the patches from bug 25482 and start plack under D10 you will see a huge stacktrace with, lost in the middle: Koha::REST::V1::catch {...} ("Duplicate keys not allowed, at character offset 4789 (before "...) called at /usr/share/perl5/Try/Tiny.pm line 123 The complete output is at bug 25482 comment 11. With this patch, you will get a single line: Error while loading /etc/koha/sites/kohadev/plack.psgi: Can't load application from file "/kohadevbox/koha/api/v1/app.pl": Duplicate keys not allowed, at character offset 4789 (before "editcatalogue": "cre...") at /usr/share/perl5/Mojo/JSON.pm line 39. I am all for stacktraces, but not if the error is hidden ;) Signed-off-by: Tomas Cohen Arazi <[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/
