flow-development-collection icon indicating copy to clipboard operation
flow-development-collection copied to clipboard

`DebugExceptionHandler` should log actual exception if `buildView` failed

Open mhsdesign opened this issue 2 years ago • 0 comments

We only render the exception that happened while calling buildView, but we never tell that this is the original cause for the exception handler to be even triggered.

https://github.com/neos/flow-development-collection/blob/cd832f295cd4c7413f088f74ed8c61607518d3bc/Neos.Flow/Classes/Error/DebugExceptionHandler.php#L78-L82

I think we should augment the catched exception from buildView with the information that there was another exception, show the reference code and log the actual exception

mhsdesign avatar Nov 09 '23 12:11 mhsdesign