-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUGFIX: Show the right error message if only child is published #3634
Conversation
@@ -243,6 +244,11 @@ public function publishAction(array $nodeContextPaths, string $targetWorkspaceNa | |||
'Node could not be published, probably because of a missing parentNode. Please check that the parentNode has been published.', | |||
1682762156 | |||
); | |||
} catch (NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint $e) { | |||
throw new NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving the error ;)
I find the pattern of rethrowing the same error class a bit odd. I see that this pattern was used also in the code above and introduced via #3468
But I like to suggest to use a generic RuntimeException and additionally pass the original exception as third parameter for both cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be merged after solving the conflicts ;)
closes #3633
What I did
I adjusted the message that is output to the user if the parentnode does not exist in the current dimension.