From: Marcus Ramberg Date: Mon, 27 Sep 2004 20:34:58 +0000 (+0000) Subject: Extended debugging info on "we don't have that table". X-Git-Tag: 2.10~152 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e5f59b8d71f41aabe4372687a0fa45a25a0e3a13;p=maypole.git Extended debugging info on "we don't have that table". Fixed Jesse's last name. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@210 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 6063582..9c67ad6 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -130,7 +130,8 @@ sub is_applicable { $config->ok_tables || $config->ok_tables( $config->display_tables ); $config->ok_tables( { map { $_ => 1 } @{ $config->ok_tables } } ) if ref $config->ok_tables eq "ARRAY"; - warn "We don't have that table ($self->{table})" + warn "We don't have that table ($self->{table}).\n". + "Available tables are: ".join (",", @{ $config->{display_tables} }) if $self->debug and not $config->ok_tables->{ $self->{table} }; return DECLINED() unless exists $config->ok_tables->{ $self->{table} }; @@ -404,7 +405,7 @@ Simon Cozens, C =head1 THANK YOU -Danijel Milicevic, Jesse Scheidlower, Jody Belka, Marcus Ramberg, +Danijel Milicevic, Jesse Sheidlower, Jody Belka, Marcus Ramberg, Mickael Joanne, Simon Flack, Veljko Vidovic and all the others who've helped.