HOR-2962
This commit is contained in:
@@ -290,18 +290,14 @@ EOT;
|
||||
$taskOpts[$validOpts[$optName]] = $optArg;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$token = strtotime("now");
|
||||
PMException::registerErrorLog($e, $token);
|
||||
echo self::error( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
|
||||
echo self::error( "Invalid options: " . $e->getMessage() ) . "\n\n";
|
||||
self::help( $taskName );
|
||||
return;
|
||||
}
|
||||
try {
|
||||
call_user_func( $taskData['function'], $arguments, $taskOpts );
|
||||
} catch (Exception $e) {
|
||||
$token = strtotime("now");
|
||||
PMException::registerErrorLog($e, $token);
|
||||
echo self::error( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
|
||||
echo self::error( "\n Error executing '$taskName':\n\n {$e->getMessage()}\n" ) . "\n";
|
||||
global $tempDirectory;
|
||||
if (!empty($tempDirectory)) {
|
||||
G::rm_dir($tempDirectory);
|
||||
|
||||
Reference in New Issue
Block a user