X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2F_Util.pm;h=3e3b68f188620594840b0fdd1c26a64548fe7136;hb=a04141382e5dc37ab58323870c2efedf3851b89e;hp=60e0409615ecaaa6ea71fd11181ee0f5e57006bc;hpb=bf302897b5be1fe2e857b6be427dd66e82587547;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/_Util.pm b/lib/DBIx/Class/_Util.pm index 60e0409..3e3b68f 100644 --- a/lib/DBIx/Class/_Util.pm +++ b/lib/DBIx/Class/_Util.pm @@ -83,6 +83,12 @@ sub refcount ($) { sub is_exception ($) { my $e = $_[0]; + # this is not strictly correct - an eval setting $@ to undef + # is *not* the same as an eval setting $@ to '' + # but for the sake of simplicity assume the following for + # the time being + return 0 unless defined $e; + my ($not_blank, $suberror); { local $@;