[NUUG fiksgatami] [patch] Use throw to report errors in mySociety::Config

Matthew Somerville matthew at mysociety.org
Mon Jan 26 15:44:34 CET 2009


Hi,

This, plus the iPhone/contact email patches should now be applied.

ATB,
Matthew

Petter Reinholdtsen wrote:
> When there is an error in the configuration, an empty Error exception
> is displayed on the front page.  The reason is that the die messages
> sent from the mySociety::Config module is not made part of any Error
> exception, and thus not displayed.  I recommend changing the
> mySociety::Config module to use throw instead of die to report
> problems.  Here is a patch to do just that.  With this change in
> place, it was trivial to figure out which configuration variable was
> incorrect.
> 


More information about the fiksgatami mailing list