summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-10-14 19:44:07 +0200
committerDylan William Hardison <dylan@hardison.net>2018-10-14 19:44:07 +0200
commit480e3572661cc856591e0aa11b5eb023338558ed (patch)
treedff140eca89d37f8bd1ca1feffe93b7103541519
parent7556469b5c1ff1083c408c6d0ef6642122a42def (diff)
downloadbugzilla-480e3572661cc856591e0aa11b5eb023338558ed.tar.gz
bugzilla-480e3572661cc856591e0aa11b5eb023338558ed.tar.xz
fix stack for error messages
-rw-r--r--Bugzilla/DB.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 87110aaaa..51dd75299 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -58,7 +58,9 @@ has [qw(dsn user pass attrs)] => (
$stash->add_symbol(
$symbol => sub {
my $self = shift;
- return $self->dbh->$method(@_);
+ unshift @_, $self->dbh;
+ my $func = $self->dbh->can($method);
+ goto &$func;
}
);
}