[cgiapp] 500 error on missing runlevel

fREW Schmidt frioux at gmail.com
Thu Mar 19 14:53:26 EDT 2009


On Thu, Mar 19, 2009 at 1:01 PM, Steve <steve at octane.to> wrote:

> Are you using either CGI::Application::Dispatch or CGI::Carp
> qw(fatalsToBrowser)?
>
> ---
> Steve Comrie
>
> Stewart L wrote:
>
>> Tried digging a bit through the archives and didn't find anything on this.
>>
>> If someone does something weird and calls a runlevel that does not exist,
>> the application returns a 500 Server error and the message 'no such run
>> level'.
>>
>> Is there a way to handle this more gracefully than have the application
>> crash?  I'd like to return an error page.
>
>

http://search.cpan.org/dist/CGI-Application/lib/CGI/Application.pm
Search for AUTOLOAD.  That should do what you want.


-- 
fREW Schmidt
http://blog.afoolishmanifesto.com


More information about the cgiapp mailing list