Skip to content

Commit

Permalink
TASK: Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Oct 12, 2023
1 parent 4c53438 commit 404cd2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions Neos.Neos/Classes/Domain/Service/SiteNodeUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ public function findSiteNodeBySite(
);

if (!$siteNode) {
throw new \RuntimeException(sprintf(
'No site node found for site "%s"', $site->getNodeName()
), 1697140379);
throw new \RuntimeException(sprintf('No site node found for site "%s"', $site->getNodeName()), 1697140379);
}

if (!$this->getNodeType($siteNode)->isOfType(NodeTypeNameFactory::NAME_SITE)) {
throw new \RuntimeException(sprintf(
'The site node "%s" (type: "%s") must be of type "%s"', $siteNode->nodeAggregateId->value, $siteNode->nodeTypeName->value, NodeTypeNameFactory::NAME_SITE
'The site node "%s" (type: "%s") must be of type "%s"',
$siteNode->nodeAggregateId->value,
$siteNode->nodeTypeName->value,
NodeTypeNameFactory::NAME_SITE
), 1697140367);
}

Expand Down
5 changes: 2 additions & 3 deletions Neos.Neos/Classes/View/FusionExceptionView.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ public function render()
$liveWorkspace = $contentRepository->getWorkspaceFinder()->findOneByName(WorkspaceName::forLive());

$currentSiteNode = null;
if ($liveWorkspace) {
$site = $this->siteRepository->findOneByNodeName($siteDetectionResult->siteNodeName);

$site = $this->siteRepository->findOneByNodeName($siteDetectionResult->siteNodeName);
if ($liveWorkspace && $site) {
$currentSiteNode = $this->siteNodeUtility->findSiteNodeBySite(
$site,
$liveWorkspace->currentContentStreamId,
Expand Down

0 comments on commit 404cd2b

Please sign in to comment.