Skip to content

Commit

Permalink
Log error when no content is available in content and location providers
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 6, 2023
1 parent 19afcdf commit 659d352
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"netgen/layouts-core": "~1.4.3",
"netgen/layouts-core": "~1.4.5",
"netgen/content-browser-ezplatform": "^1.4",
"ezsystems/ezplatform-admin-ui": "^1.5 || ^2.3",
"ezsystems/ezplatform-http-cache": "^1.0 || ^2.3"
Expand Down
2 changes: 1 addition & 1 deletion lib/Parameters/ValueObjectProvider/ContentProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getValueObject($value): ?Content

return $content->contentInfo->mainLocationId !== null ? $content : null;
} catch (NotFoundException $e) {
$this->errorHandler->handleError($e);
$this->errorHandler->logError($e);

return null;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Parameters/ValueObjectProvider/LocationProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getValueObject($value): ?Location
static fn (Repository $repository): Location => $repository->getLocationService()->loadLocation((int) $value),
);
} catch (NotFoundException $e) {
$this->errorHandler->handleError($e);
$this->errorHandler->logError($e);

return null;
}
Expand Down

0 comments on commit 659d352

Please sign in to comment.