don't use throw_exception in code that can't
Matt S Trout [Mon, 16 Apr 2012 16:56:06 +0000 (16:56 +0000)]
lib/DBIx/Class/SQLMaker/Converter.pm

index eca8545..a928e36 100644 (file)
@@ -106,7 +106,7 @@ around _table_to_dq => sub {
         { $_ => $spec->{$_} }
         ( grep { $_ !~ /^\-/ } keys %$spec )
       );
-      $self->throw_exception( "Only one table/as pair expected in from-spec but an exra '$toomuch' key present" )
+      die "Only one table/as pair expected in from-spec but an exra '$toomuch' key present"
         if defined $toomuch;
 
       return +{