From: Brandon L. Black Date: Wed, 15 Mar 2006 13:17:24 +0000 (+0000) Subject: Storage::DBI throws intelligent exception if no @connect_info X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9d31f7dc10e043051ec690c5f004b9ebad40b31a;p=dbsrgits%2FDBIx-Class-Historic.git Storage::DBI throws intelligent exception if no @connect_info --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index ac29900..0da5731 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -350,6 +350,9 @@ sub _populate_dbh { sub _connect { my ($self, @info) = @_; + $self->throw_exception("You failed to provide any connection info") + if !@info; + my ($old_connect_via, $dbh); if ($INC{'Apache/DBI.pm'} && $ENV{MOD_PERL}) {