diff --git a/Classes/Controller/BackendServiceController.php b/Classes/Controller/BackendServiceController.php
index e50f830518..7e0a09420b 100644
--- a/Classes/Controller/BackendServiceController.php
+++ b/Classes/Controller/BackendServiceController.php
@@ -19,6 +19,7 @@
use Neos\ContentRepository\Core\Feature\WorkspaceRebase\Dto\RebaseErrorHandlingStrategy;
use Neos\ContentRepository\Core\Projection\ContentGraph\VisibilityConstraints;
use Neos\ContentRepository\Core\SharedModel\Exception\NodeAggregateCurrentlyDoesNotExist;
+use Neos\ContentRepository\Core\SharedModel\Exception\NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint;
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName;
use Neos\ContentRepositoryRegistry\ContentRepositoryRegistry;
use Neos\Eel\FlowQuery\FlowQuery;
@@ -261,9 +262,16 @@ public function publishChangesInDocumentAction(array $command): void
]
]);
} catch (NodeAggregateCurrentlyDoesNotExist $e) {
- throw new NodeAggregateCurrentlyDoesNotExist(
- 'Node could not be published, probably because of a missing parentNode. Please check that the parentNode has been published.',
- 1682762156
+ throw new \RuntimeException(
+ $this->getLabel('NodeNotPublishedMissingParentNode'),
+ 1705053430,
+ $e
+ );
+ } catch (NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint $e) {
+ throw new \RuntimeException(
+ $this->getLabel('NodeNotPublishedParentNodeNotInCurrentDimension'),
+ 1705053432,
+ $e
);
}
} catch (\Exception $e) {
diff --git a/Resources/Private/Translations/en/Main.xlf b/Resources/Private/Translations/en/Main.xlf
index 43fb072c93..e61864dead 100644
--- a/Resources/Private/Translations/en/Main.xlf
+++ b/Resources/Private/Translations/en/Main.xlf
@@ -377,6 +377,12 @@
+
+
+
+
+
+