diff --git a/core/modules/migrate_drupal_ui/src/Form/CredentialForm.php b/core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
index cd767cc3d1..955fa01b90 100644
--- a/core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
+++ b/core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
@@ -75,6 +75,11 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$default_options = [];
+ $form['help'] = [
+ '#type' => 'item',
+ '#description' => $this->t('Provide the information to access the Drupal site you want to upgrade. Files can be imported into the upgraded site as well. See the Upgrade documentation for more detailed instructions.', [':url' => 'https://www.drupal.org/upgrade/migrate']),
+ ];
+
$form['version'] = [
'#type' => 'radios',
'#default_value' => 7,
@@ -217,10 +222,11 @@ public function validateForm(array &$form, FormStateInterface $form_state) {
}
}
catch (\Exception $e) {
+ $msg = $this->t('Failed to connect to your database server. The server reports the following message: %error.
- Is the database server running?
- Does the database exist, and have you entered the correct database name?
- Have you entered the correct username and password?
- Have you entered the correct database hostname?
', ['%error' => $e->getMessage()]);
$error_message = [
- '#title' => $this->t('Resolve the issue below to continue the upgrade.'),
+ '#title' => $this->t('Resolve all issues below to continue the upgrade.'),
'#theme' => 'item_list',
- '#items' => [$e->getMessage()],
+ '#items' => [$msg],
];
$form_state->setErrorByName($database['driver'] . '][0', $this->renderer->renderPlain($error_message));
}
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
index 36925d2b84..8384629eb5 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
@@ -70,11 +70,11 @@ public function testMigrateUpgradeExecute() {
// Ensure submitting the form with invalid database credentials gives us a
// nice warning.
$this->drupalPostForm(NULL, [$driver . '[database]' => 'wrong'] + $edits, t('Review upgrade'));
- $session->pageTextContains('Resolve the issue below to continue the upgrade.');
+ $session->pageTextContains('Resolve all issues below to continue the upgrade.');
$this->drupalPostForm(NULL, $edits, t('Review upgrade'));
// Ensure we get errors about missing modules.
- $session->pageTextContains(t('Resolve the issue below to continue the upgrade'));
+ $session->pageTextContains(t('Resolve all issues below to continue the upgrade'));
$session->pageTextContains(t('The no_source_module plugin must define the source_module property.'));
// Uninstall the module causing the missing module error messages.