diff --git a/modules/search_api_db/src/Plugin/search_api/backend/Database.php b/modules/search_api_db/src/Plugin/search_api/backend/Database.php index 3ddf2a81..ffbcfc53 100644 --- a/modules/search_api_db/src/Plugin/search_api/backend/Database.php +++ b/modules/search_api_db/src/Plugin/search_api/backend/Database.php @@ -1025,6 +1025,10 @@ protected function fieldsUpdated(IndexInterface $index) { // The database operations might throw PDO or other exceptions, so we catch // them all and re-wrap them appropriately. catch (\Exception $e) { + $message = '%type: @message in %function (line %line of %file).'; + $variables = \Drupal\Core\Utility\Error::decodeException($e); + $message = (string) new \Drupal\Component\Render\FormattableMarkup($message, $variables); + trigger_error($message, E_USER_ERROR); throw new SearchApiException($e->getMessage(), $e->getCode(), $e); } }