[Koha-devel] [Bug 128] New: Failure to load MARC records gives no feedback

Andrew Arensburger arensb+koha-devel at ooblick.com
Sat Nov 16 09:58:01 CET 2002


On Fri, Nov 15, 2002 at 09:15:02AM -0000, bugzilla-daemon at wilbur.katipo.co.nz wrote:
> http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=128
> 
> I tried to upload 1.7 MB of MARC records to 1.2.3RC23. It seems to ignore it,
> without giving any error or warning message.

	A suggestion for improving this sort of thing, since IIRC
there are a number of places in Koha that don't do error-checking, but
should.
	It might be a Good Thing to add a template for error messages,
something prettier than the generic "Script failed" page that Apache
serves up by default. Ideally, it should contain a link back to the
form that was causing the error, so that if the error was caused by
user input, the user can easily go back and fix it.
	One way to do this would be to add a $SIG{__DIE__} handler
that outputs the appropriate template.

	In addition, it'd be nice to have some custom error pages
(specified by the Apache "ErrorDocument" directive). This would be
particularly useful for those cases in which a script fails to compile
for whatever reason, or dies for some unexpected reason.

	Of course, this means that each script would have to compute
its results before printing a single line of HTML, but since that's
the way templates work anyway, it shouldn't be too much of a burden.

-- 
Andrew Arensburger                      This message *does* represent the
arensb at ooblick.com                      views of ooblick.com
	      It's not the money I want, it's the stuff.




More information about the Koha-devel mailing list