Errors on WorkspacePublishForm::submitForm are not being logged

Created on 21 July 2023, over 1 year ago
Updated 31 July 2023, over 1 year ago

Problem/Motivation

In Drupal\workspaces\Form\WorkspacePublishForm::submitForm we catch \Exception and then output a generic message and indicate that the error has been logged but we are not logging it.

https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/works...

catch (\Exception $e) {
      $this->messenger()->addMessage($this->t('Publication failed. All errors have been logged.'), 'error');
    }

Proposed resolution

We should either allow the exception to be thrown or log it so that it can surface issues.

🐛 Bug report
Status

Fixed

Version

10.1

Component
Workspaces 

Last updated about 18 hours ago

No maintainer
Created by

🇬🇧United Kingdom nlisgo

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

Comments & Activities

Production build 0.71.5 2024