Skip to content

Commit

Permalink
feature: update composer dependencies, add logging of zip export errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos Pribelszki committed Nov 5, 2023
1 parent 3384aa5 commit 1781821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"oat-sa/oatbox-extension-installer": "~1.1||dev-master",
"oat-sa/lib-generis-search": "2.1.2",
"oat-sa/generis": ">=15.24",
"oat-sa/tao-core": ">=52.1",
"oat-sa/tao-core": ">=53.12",
"oat-sa/extension-tao-item": ">=v12.1.0",
"oat-sa/extension-tao-itemqti": ">=29.14.5",
"oat-sa/extension-tao-test": ">=15.16",
Expand Down
5 changes: 5 additions & 0 deletions model/ZipExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use core_kernel_classes_Property;
use core_kernel_classes_Resource;
use Exception;
use oat\oatbox\log\LoggerAwareTrait;
use oat\oatbox\service\ServiceManager;
use oat\taoMediaManager\model\export\service\MediaResourcePreparerInterface;
use oat\taoMediaManager\model\export\service\SharedStimulusCSSExporter;
Expand All @@ -49,6 +50,8 @@
*/
class ZipExporter implements tao_models_classes_export_ExportHandler
{
use LoggerAwareTrait;

/**
* @inheritDoc
*/
Expand Down Expand Up @@ -199,6 +202,8 @@ protected function createZipFile($filename, array $exportClasses = [], array $ex

return $path;
} catch (Exception $e) {
$this->getLogger()->error($e->getMessage() . $e->getTraceAsString());

$zip->close();

if (is_file($path)) {
Expand Down

0 comments on commit 1781821

Please sign in to comment.