Fixed an upgrade problem from 4.5.0-4.6.0 and added more debugging to macro compilation.

This commit is contained in:
JT Smith 2002-08-23 03:28:26 +00:00
parent 28e2062cd8
commit fdc249cf59
6 changed files with 1339 additions and 610 deletions

View file

@ -118,7 +118,7 @@ sub _loadMacros {
$namespace = $1;
$cmd = "use WebGUI::Macro::".$1;
eval($cmd);
WebGUI::ErrorHandler::fatalError("Macro failed to compile: $namespace.") if($@);
WebGUI::ErrorHandler::fatalError("Macro failed to compile: $namespace.".$@) if($@);
$exclude = $session{config}{excludeMacro};
$exclude =~ s/ //g;
unless (isIn($namespace, split(/,/,$exclude))) {