Bug 70168 - improve error reporting in die mode

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1096 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-11-23 12:46:08 +00:00
parent 73053ee5c6
commit 3e104fbabb
1 changed files with 3 additions and 2 deletions

View File

@ -65,9 +65,10 @@ sub _die_error
{
die @_;
}
if (ref($_[0]) eq 'Bugzilla::Error')
if (ref $_[0] eq 'Bugzilla::Error')
{
die($_[0]->{message});
# Bugzilla::Error has overloaded conversion to string
die @_;
}
else
{