From: Matt S Trout Date: Mon, 16 Apr 2012 20:40:18 +0000 (+0000) Subject: convert more throws to die X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7d52b7d7d4e885803d2654cbb55b69bc2d14b2ed;p=dbsrgits%2FDBIx-Class-Historic.git convert more throws to die --- diff --git a/lib/DBIx/Class/SQLMaker/Converter.pm b/lib/DBIx/Class/SQLMaker/Converter.pm index d290911..7cca41c 100644 --- a/lib/DBIx/Class/SQLMaker/Converter.pm +++ b/lib/DBIx/Class/SQLMaker/Converter.pm @@ -43,11 +43,11 @@ around _select_field_to_dq => sub { # there should be only one pair if (@toomany) { - $self->throw_exception( "Malformed select argument - too many keys in hash: " . join (',', keys %$field ) ); + die( "Malformed select argument - too many keys in hash: " . join (',', keys %$field ) ); } if (lc ($func) eq 'distinct' && ref $args eq 'ARRAY' && @$args > 1) { - $self->throw_exception ( + die( 'The select => { distinct => ... } syntax is not supported for multiple columns.' .' Instead please use { group_by => [ qw/' . (join ' ', @$args) . '/ ] }' .' or { select => [ qw/' . (join ' ', @$args) . '/ ], distinct => 1 }'