croak instead of die
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / SQLAHacks.pm
index 500ce54..c3a3f0d 100644 (file)
@@ -34,6 +34,8 @@ BEGIN {
 }
 
 # the "oh noes offset/top without limit" constant
+# limited to 32 bits for sanity (and since it is fed
+# to sprintf %u)
 sub __max_int { 0xFFFFFFFF };
 
 
@@ -813,7 +815,7 @@ sub _join_condition {
   } elsif (ref $cond eq 'ARRAY') {
     return join(' OR ', map { $self->_join_condition($_) } @$cond);
   } else {
-    die "Can't handle this yet!";
+    croak "Can't handle this yet!";
   }
 }