From: Ash Berlin Date: Thu, 8 Mar 2007 11:13:10 +0000 (+0000) Subject: Fixed case where no uuid module found so that it dies with error, not with method... X-Git-Tag: v0.01001~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7408ffa3c76c0e4476c5a6a1f076a09a375de79b;p=dbsrgits%2FDBIx-Class-UUIDColumns.git Fixed case where no uuid module found so that it dies with error, not with method not found --- diff --git a/lib/DBIx/Class/UUIDColumns.pm b/lib/DBIx/Class/UUIDColumns.pm index 107d3c2..b4af9ba 100644 --- a/lib/DBIx/Class/UUIDColumns.pm +++ b/lib/DBIx/Class/UUIDColumns.pm @@ -72,7 +72,7 @@ sub _find_uuid_module { } elsif (eval{require Win32API::GUID}) { return '::Win32API::GUID'; } else { - shift->throw_exception('no suitable uuid module could be found') + die 'no suitable uuid module could be found for use with DBIx::Class::UUIDColumns'; }; };