Skip to content
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

TASK: improve robustness of FusionExceptionView #4050

Closed
wants to merge 1 commit into from

Conversation

skurfuerst
Copy link
Member

No description provided.

@skurfuerst skurfuerst added the 9.0 label Feb 21, 2023
@skurfuerst skurfuerst added this to the 9.0 (ES CR) milestone Feb 21, 2023
@skurfuerst skurfuerst requested a review from mficzel February 21, 2023 08:35
$dimensionSpacePoint,
VisibilityConstraints::frontend()
);
} catch (\RuntimeException $e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have seen these empty try/catch blocks make debugging real hard because they might hide an underlying exception (e.g. with persistence) – especially when used with low level SPL exceptions.
Shouldn't find*() return a nullable node?

@@ -155,7 +168,11 @@ public function render()
return $output;
}

return '';
// There was an error during exception handling. Log the original exception instead.
$exception = $this->variables['exception'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check but is this variable guaranteed to be set?

@skurfuerst
Copy link
Member Author

related: #3735

@bwaidelich bwaidelich changed the title (9.0) TASK: improve robustness of FusionExceptionView TASK: improve robustness of FusionExceptionView Apr 12, 2023
@github-actions github-actions bot added the Task label Apr 12, 2023
@mhsdesign
Copy link
Member

related #3190, maybe we can fix this here as well?

@mhsdesign
Copy link
Member

Superseded by approach #4717

@mhsdesign mhsdesign closed this Feb 16, 2024
@mhsdesign mhsdesign deleted the 90-fusionexceptionview-robustness branch February 16, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants