From: Matt S Trout Date: Mon, 16 Apr 2012 16:56:06 +0000 (+0000) Subject: don't use throw_exception in code that can't X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7fb22409602ba89777a0a32911f36aacac085150;p=dbsrgits%2FDBIx-Class-Historic.git don't use throw_exception in code that can't --- diff --git a/lib/DBIx/Class/SQLMaker/Converter.pm b/lib/DBIx/Class/SQLMaker/Converter.pm index eca8545..a928e36 100644 --- a/lib/DBIx/Class/SQLMaker/Converter.pm +++ b/lib/DBIx/Class/SQLMaker/Converter.pm @@ -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 +{