From: Arthur Axel "fREW" Schmidt Date: Tue, 8 Dec 2009 15:15:50 +0000 (+0000) Subject: real exception instead of die X-Git-Tag: v0.08116~103^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2dde7fb770ab920c186ed18db544f6e76f90c8b3;p=dbsrgits%2FDBIx-Class.git real exception instead of die --- diff --git a/lib/DBIx/Class/Storage/DBI/MSSQL.pm b/lib/DBIx/Class/Storage/DBI/MSSQL.pm index e39871d..be1c399 100644 --- a/lib/DBIx/Class/Storage/DBI/MSSQL.pm +++ b/lib/DBIx/Class/Storage/DBI/MSSQL.pm @@ -235,7 +235,7 @@ sub _get_mssql_version { if ($data->{Character_Value} =~ /^(\d+)\./) { return $1; } else { - die q{wtf your server doesn't have a version!}; + $self->throw_exception(q{your MSSQL server doesn't have a version!}); } }