From: Marcus Ramberg Date: Thu, 21 Oct 2004 13:01:43 +0000 (+0000) Subject: Warn if authenticate doesn't return a value. X-Git-Tag: 2.10~114 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=sidebyside;h=371b76dc4be5e9a9cd9955e58f689725d458f46b;p=maypole.git Warn if authenticate doesn't return a value. Turn on debugging for BeerDB. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@248 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/ex/BeerDB.pm b/ex/BeerDB.pm index 26f8e94..9d9867d 100644 --- a/ex/BeerDB.pm +++ b/ex/BeerDB.pm @@ -1,5 +1,5 @@ package BeerDB; -use Maypole::Application; +use Maypole::Application qw/-Debug/; use Class::DBI::Loader::Relationship; BEGIN { diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 5fd048e..13af171 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -84,6 +84,7 @@ sub handler_guts { # We authenticate every request, needed for proper session management my $status; eval { $status = $r->call_authenticate }; + warn "No return value from authenticate" unless $status; if ( my $error = $@ ) { $status = $r->call_exception($error); if ( $status != OK ) {