koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andrew Arensburger
Subject: Re: [Koha-devel] [Bug 128] New: Failure to load MARC records gives no feedback
Date: Sat Nov 16 09:58:01 2002
User-agent: Mutt/1.2.5.1i

On Fri, Nov 15, 2002 at 09:15:02AM -0000, address@hidden 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
address@hidden                      views of ooblick.com
              It's not the money I want, it's the stuff.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]