Bug 58633

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@610 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2009-12-28 13:54:10 +00:00
parent e01e2710aa
commit 12d054ed2d
1 changed files with 10 additions and 5 deletions

View File

@ -66,13 +66,18 @@ BEGIN
utf8::decode($_[0]);
my $msg = $_[0];
$msg =~ s/\s*$//so;
$msg = { eval_error => $msg };
if (eval { require Devel::StackTrace; })
# We are not interested in getting "Software caused connection abort" errors
# on each "Stop" click in the browser.
if ($msg !~ /^(Программа вызвала сброс соединения|Software caused connection abort) at /iso)
{
# Append stack trace if Devel::StackTrace is available
$msg->{stack_trace} = Devel::StackTrace->new->as_string;
$msg = { eval_error => $msg };
if (eval { require Devel::StackTrace; })
{
# Append stack trace if Devel::StackTrace is available
$msg->{stack_trace} = Devel::StackTrace->new->as_string;
}
Bugzilla::Error::ThrowCodeError('eval_error', $msg);
}
Bugzilla::Error::ThrowCodeError('eval_error', $msg);
}
};
}