From 371b76dc4be5e9a9cd9955e58f689725d458f46b Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Thu, 21 Oct 2004 13:01:43 +0000 Subject: [PATCH] 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 --- ex/BeerDB.pm | 2 +- lib/Maypole.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 ) { -- 2.39.2