change ErrorHandler to Log
This commit is contained in:
parent
d11cd6f4f7
commit
199c4e4960
90 changed files with 311 additions and 311 deletions
|
|
@ -57,11 +57,11 @@ sub execute {
|
|||
$output = eval { WebGUI::Pluggable::run("WebGUI::Operation::".$operation->{$op}, 'www_'.$op, [ $session ] ) };
|
||||
if ( $@ ) {
|
||||
die $@ if ($@ =~ "^fatal:");
|
||||
$session->errorHandler->error($@);
|
||||
$session->log->error($@);
|
||||
return undef;
|
||||
}
|
||||
} else {
|
||||
$session->errorHandler->security("execute an invalid operation: ".$op);
|
||||
$session->log->security("execute an invalid operation: ".$op);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue