real exception instead of die
Arthur Axel "fREW" Schmidt [Tue, 8 Dec 2009 15:15:50 +0000 (15:15 +0000)]
lib/DBIx/Class/Storage/DBI/MSSQL.pm

index e39871d..be1c399 100644 (file)
@@ -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!});
   }
 }