projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add a DBIx::UUIDColumns plugin.
[dbsrgits/DBIx-Class-Historic.git]
/
lib
/
DBIx
/
Class
/
Exception.pm
diff --git
a/lib/DBIx/Class/Exception.pm
b/lib/DBIx/Class/Exception.pm
index
cfa7887
..
40426ad
100644
(file)
--- a/
lib/DBIx/Class/Exception.pm
+++ b/
lib/DBIx/Class/Exception.pm
@@
-49,7
+49,7
@@
sub throw {
my $message = $params{message} || $params{error} || $! || '';
- local $Carp::CarpLevel = 1;
+ local $Carp::CarpLevel = (caller(1) eq 'NEXT' ? 2 : 1);
Carp::croak($message);
}