From b3a9492ad241f3dfb0166ea5fab9c0137cd18ca9 Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Sat, 13 Jul 2024 00:09:12 +0100 Subject: [PATCH] Issue #3458431 by scott_euser, quietone: Improve developer experience for 10.3.x upgrade by informing where typed config fails (cherry picked from commit 5a9d7e1058df299de1d1027ccb573083f8b8e00f) --- core/modules/system/system.post_update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/system/system.post_update.php b/core/modules/system/system.post_update.php index 62735dd1fb08..d0bab92fb183 100644 --- a/core/modules/system/system.post_update.php +++ b/core/modules/system/system.post_update.php @@ -261,7 +261,7 @@ function system_post_update_add_langcode_to_all_translatable_config(&$sandbox = $config = \Drupal::configFactory()->getEditable($name); $typed_config = $typed_config_manager->createFromNameAndData($name, $config->getRawData()); // Simple config is always a mapping. - assert($typed_config instanceof Mapping); + assert($typed_config instanceof Mapping, "Failed on config name '$name'"); // If this config contains any elements (at any level of nesting) which // are translatable, but the config hasn't got a langcode, assign one. But -- GitLab