зеркало из https://github.com/mozilla/gecko-dev.git
add better more detailed error messages when bonsai fails.
This commit is contained in:
Родитель
c865a10d47
Коммит
e260288d81
|
@ -7,8 +7,8 @@
|
|||
# module which uses this library is: lib/TinderDB/VC_Bonsai.pm
|
||||
|
||||
|
||||
# $Revision: 1.7 $
|
||||
# $Date: 2002/01/02 18:09:56 $
|
||||
# $Revision: 1.8 $
|
||||
# $Date: 2002/04/24 23:24:42 $
|
||||
# $Author: kestes%walrus.com $
|
||||
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/lib/BonsaiData.pm,v $
|
||||
# $Name: $
|
||||
|
@ -89,8 +89,18 @@ sub load_bonsai_libs {
|
|||
|
||||
"");
|
||||
|
||||
($@) &&
|
||||
die($@);
|
||||
if ($@) {
|
||||
die(
|
||||
"Error in Tinderbox2 package: BonsaiData".
|
||||
"Could not load Bonsai file: \n".
|
||||
"\t'$BONSAI_DIR/adminfuncs.pl'\n ".
|
||||
"or\n"
|
||||
"\t'$BONSAI_DIR/adminfuncs.pl'\n".
|
||||
"Check that CVS repository is readable at: '$::CVS_ROOT'\n".
|
||||
"\n".
|
||||
$@
|
||||
);
|
||||
}
|
||||
|
||||
# turn the warnings off. Bonsai turns them on but it still is not
|
||||
# clean. Also I get warnings in ./lib/HTMLPopUp.pm inside the code
|
||||
|
@ -111,8 +121,6 @@ sub load_bonsai_libs {
|
|||
# This modules must not use Tinderbox Specific Libraries.
|
||||
# This library is only an interface abstraction layer.
|
||||
|
||||
|
||||
|
||||
# Read the bonsai data file and return the value of interest. For
|
||||
# security reasons we avoid loading the data via an eval.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче