Rework custom error handling

Created on 15 July 2024, 9 months ago

Problem/Motivation

We have custom error handling in \Drupal\rokka\RokkaStreamWrapper::triggerException(). It looks like the reason for this is mainly to output a user friendly error to the page in case of a network error: "An error occurred while communicating with the Rokka.io server!". In addition to this any exceptions are converted to user warnings.

Unfortunately this causes the exception backtraces to be lost, making it very difficult to track down bugs in the module. See for example 🐛 Fatal error "Stream must be a resource" Needs review .

Proposed resolution

Make sure we retain the backtraces and full information similar to what is output by _drupal_error_handler_real().

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024