Graceful destruction on errors where plugins don't compile or follow API.
This commit is contained in:
parent
337db77f48
commit
1ac2bbd738
3 changed files with 18 additions and 7 deletions
|
|
@ -33,7 +33,8 @@ sub process {
|
|||
$output = $_[0];
|
||||
foreach $macro (keys %{$session{macro}}) {
|
||||
$cmd = "WebGUI::Macro::".$macro."::process";
|
||||
$output = &$cmd($output);
|
||||
$output = eval{&$cmd($output)};
|
||||
WebGUI::ErrorHandler::fatalError("Processing failed on macro: $macro.") if($@);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue