Details
-
Improvement
-
Resolution: Unresolved
-
Medium
-
3.2.0, 2.5.14, 3.1.4
-
None
Description
There are quite a few places in the codebase for ezsystems/ezplatform-page-fieldtype where exceptions are blackholed. This severely affects the observability of these errors when creating/developing these blocks.
Examples can be found under:
src/lib/Event/Subscriber/BlockResponseSubscriber.php
51,11: } catch (\Exception $e)
lib/Event/Subscriber/CollectRelationsSubscriber.php
62,15: catch (\Exception $e)
lib/FieldType/Page/Block/Event/Listener/ContentListBlockListener.php
159,11: } catch (\Exception $e)
/lib/FieldType/Page/Block/Event/Listener/GalleryBlockListener.php
111,11: }
catch (\Exception $e) {
It would be great if errors here could be logged in some way instead of the contents of them been discarded (especially src/lib/Event/Subscriber/BlockResponseSubscriber.php) where if a block fails to render due to unknown errors it seems to just vanish?