-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Conversation
$dimensionSpacePoint, | ||
VisibilityConstraints::frontend() | ||
); | ||
} catch (\RuntimeException $e) { |
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.
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']; |
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.
I didn't check but is this variable guaranteed to be set?
related: #3735 |
related #3190, maybe we can fix this here as well? |
Superseded by approach #4717 |
No description provided.