diff --git a/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php
index c02d4fe..13b8795 100644
--- a/core/lib/Drupal/Core/Config/ConfigImporter.php
+++ b/core/lib/Drupal/Core/Config/ConfigImporter.php
@@ -762,7 +762,7 @@ protected function processConfiguration($collection, $op, $name) {
       }
     }
     catch (\Exception $e) {
-      $this->logError($this->t('Unexpected error during import with operation @op for @name: !message', array('@op' => $op, '@name' => $name, '!message' => $e->getMessage())));
+      $this->logError($this->t('Unexpected error during import with operation @op for @name: @message', array('@op' => $op, '@name' => $name, '@message' => $e->getMessage())));
       // Error for that operation was logged, mark it as processed so that
       // the import can continue.
       $this->setProcessedConfiguration($collection, $op, $name);
diff --git a/core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php b/core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php
index 7bc0f1c..1273943 100644
--- a/core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php
+++ b/core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php
@@ -179,8 +179,8 @@ public function validateForm(array &$form, FormStateInterface $form_state) {
       catch (\Exception $e) {
         // The format of this error message is similar to that used on the
         // database connection form in the installer.
-        $form_state->setErrorByName('connection_settings', $this->t('Failed to connect to the server. The server reports the following message: !message For more help installing or updating code on your server, see the <a href="@handbook_url">handbook</a>.', array(
-          '!message' => '<p class="error">' . $e->getMessage()  . '</p>',
+        $form_state->setErrorByName('connection_settings', $this->t('Failed to connect to the server. The server reports the following message: <p class="error">@message</p> For more help installing or updating code on your server, see the <a href="@handbook_url">handbook</a>.', array(
+          '@message' => $e->getMessage(),
           '@handbook_url' => 'https://www.drupal.org/documentation/install/modules-themes',
         )));
       }
diff --git a/core/lib/Drupal/Core/Updater/Updater.php b/core/lib/Drupal/Core/Updater/Updater.php
index 4869b1c..b125192 100644
--- a/core/lib/Drupal/Core/Updater/Updater.php
+++ b/core/lib/Drupal/Core/Updater/Updater.php
@@ -215,50 +215,44 @@ protected function getInstallArgs($overrides = array()) {
    *   An array of links which the user may need to complete the update
    *
    * @throws \Drupal\Core\Updater\UpdaterException
-   * @throws \Drupal\Core\Updater\UpdaterFileTransferException
    */
   public function update(&$filetransfer, $overrides = array()) {
-    try {
-      // Establish arguments with possible overrides.
-      $args = $this->getInstallArgs($overrides);
+    // Establish arguments with possible overrides.
+    $args = $this->getInstallArgs($overrides);
 
-      // Take a Backup.
-      if ($args['make_backup']) {
-        $this->makeBackup($filetransfer, $args['install_dir'], $args['backup_dir']);
-      }
+    // Take a Backup.
+    if ($args['make_backup']) {
+      $this->makeBackup($filetransfer, $args['install_dir'], $args['backup_dir']);
+    }
 
-      if (!$this->name) {
-        // This is bad, don't want to delete the install directory.
-        throw new UpdaterException(t('Fatal error in update, cowardly refusing to wipe out the install directory.'));
-      }
+    if (!$this->name) {
+      // This is bad, don't want to delete the install directory.
+      throw new UpdaterException(t('Fatal error in update, cowardly refusing to wipe out the install directory.'));
+    }
 
-      // Make sure the installation parent directory exists and is writable.
-      $this->prepareInstallDirectory($filetransfer, $args['install_dir']);
+    // Make sure the installation parent directory exists and is writable.
+    $this->prepareInstallDirectory($filetransfer, $args['install_dir']);
 
-      // Note: If the project is installed in the top-level, it will not be
-      // deleted. It will be installed in sites/default as that will override
-      // the top-level reference and not break other sites which are using it.
-      if (is_dir($args['install_dir'] . '/' . $this->name)) {
-        // Remove the existing installed file.
-        $filetransfer->removeDirectory($args['install_dir'] . '/' . $this->name);
-      }
+    // Note: If the project is installed in the top-level, it will not be
+    // deleted. It will be installed in sites/default as that will override
+    // the top-level reference and not break other sites which are using it.
+    if (is_dir($args['install_dir'] . '/' . $this->name)) {
+      // Remove the existing installed file.
+      $filetransfer->removeDirectory($args['install_dir'] . '/' . $this->name);
+    }
 
-      // Copy the directory in place.
-      $filetransfer->copyDirectory($this->source, $args['install_dir']);
+    // Copy the directory in place.
+    $filetransfer->copyDirectory($this->source, $args['install_dir']);
 
-      // Make sure what we just installed is readable by the web server.
-      $this->makeWorldReadable($filetransfer, $args['install_dir'] . '/' . $this->name);
+    // Make sure what we just installed is readable by the web server.
+    $this->makeWorldReadable($filetransfer, $args['install_dir'] . '/' . $this->name);
 
-      // Run the updates.
-      // @todo Decide if we want to implement this.
-      $this->postUpdate();
+    // Run the updates.
+    // @todo Decide if we want to implement this.
+    $this->postUpdate();
 
-      // For now, just return a list of links of things to do.
-      return $this->postUpdateTasks();
-    }
-    catch (FileTransferException $e) {
-      throw new UpdaterFileTransferException(t('File Transfer failed, reason: !reason', array('!reason' => strtr($e->getMessage(), $e->arguments))));
-    }
+    // For now, just return a list of links of things to do.
+    return $this->postUpdateTasks();
   }
 
   /**
@@ -271,32 +265,25 @@ public function update(&$filetransfer, $overrides = array()) {
    *
    * @return array
    *   An array of links which the user may need to complete the install.
-   *
-   * @throws \Drupal\Core\Updater\UpdaterFileTransferException
    */
   public function install(&$filetransfer, $overrides = array()) {
-    try {
-      // Establish arguments with possible overrides.
-      $args = $this->getInstallArgs($overrides);
+    // Establish arguments with possible overrides.
+    $args = $this->getInstallArgs($overrides);
 
-      // Make sure the installation parent directory exists and is writable.
-      $this->prepareInstallDirectory($filetransfer, $args['install_dir']);
+    // Make sure the installation parent directory exists and is writable.
+    $this->prepareInstallDirectory($filetransfer, $args['install_dir']);
 
-      // Copy the directory in place.
-      $filetransfer->copyDirectory($this->source, $args['install_dir']);
+    // Copy the directory in place.
+    $filetransfer->copyDirectory($this->source, $args['install_dir']);
 
-      // Make sure what we just installed is readable by the web server.
-      $this->makeWorldReadable($filetransfer, $args['install_dir'] . '/' . $this->name);
+    // Make sure what we just installed is readable by the web server.
+    $this->makeWorldReadable($filetransfer, $args['install_dir'] . '/' . $this->name);
 
-      // Potentially enable something?
-      // @todo Decide if we want to implement this.
-      $this->postInstall();
-      // For now, just return a list of links of things to do.
-      return $this->postInstallTasks();
-    }
-    catch (FileTransferException $e) {
-      throw new UpdaterFileTransferException(t('File Transfer failed, reason: !reason', array('!reason' => strtr($e->getMessage(), $e->arguments))));
-    }
+    // Potentially enable something?
+    // @todo Decide if we want to implement this.
+    $this->postInstall();
+    // For now, just return a list of links of things to do.
+    return $this->postInstallTasks();
   }
 
   /**
diff --git a/core/modules/config/src/Tests/ConfigImporterTest.php b/core/modules/config/src/Tests/ConfigImporterTest.php
index 0e695bf..51fabae 100644
--- a/core/modules/config/src/Tests/ConfigImporterTest.php
+++ b/core/modules/config/src/Tests/ConfigImporterTest.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\config\Tests;
 
+use Drupal\Component\Utility\Html;
 use Drupal\Component\Utility\SafeMarkup;
 use Drupal\Core\Config\ConfigImporter;
 use Drupal\Core\Config\ConfigImporterException;
@@ -295,7 +296,7 @@ function testSecondaryWriteSecondaryFirst() {
 
     $logs = $this->configImporter->getErrors();
     $this->assertEqual(count($logs), 1);
-    $this->assertEqual($logs[0], SafeMarkup::format("Unexpected error during import with operation @op for @name: 'config_test' entity with ID '@name_secondary' already exists.", array('@op' => 'create', '@name' => $name_primary, '@name_secondary' => 'secondary')));
+    $this->assertEqual($logs[0], Html::escape("Unexpected error during import with operation create for $name_primary: 'config_test' entity with ID 'secondary' already exists."));
   }
 
   /**
diff --git a/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php
index 70c61d1..9dc3725 100644
--- a/core/modules/migrate/src/MigrateExecutable.php
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -222,7 +222,7 @@ public function import() {
     }
     catch (\Exception $e) {
       $this->message->display(
-        $this->t('Migration failed with source plugin exception: !e', array('!e' => $e->getMessage())), 'error');
+        $this->t('Migration failed with source plugin exception: @e', array('@e' => $e->getMessage())), 'error');
       $this->migration->setStatus(MigrationInterface::STATUS_IDLE);
       return MigrationInterface::RESULT_FAILED;
     }
@@ -299,8 +299,8 @@ public function import() {
       }
       catch (\Exception $e) {
         $this->message->display(
-          $this->t('Migration failed with source plugin exception: !e',
-            array('!e' => $e->getMessage())), 'error');
+          $this->t('Migration failed with source plugin exception: @e',
+            array('@e' => $e->getMessage())), 'error');
         $this->migration->setStatus(MigrationInterface::STATUS_IDLE);
         return MigrationInterface::RESULT_FAILED;
       }
diff --git a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
index 63d5099..ed237aa 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\Tests\migrate\Unit;
 
+use Drupal\Component\Utility\Html;
 use Drupal\migrate\Entity\MigrationInterface;
 use Drupal\migrate\Plugin\MigrateIdMapInterface;
 use Drupal\migrate\MigrateException;
@@ -72,7 +73,7 @@ public function testImportWithFailingRewind() {
     // Ensure that a message with the proper message was added.
     $this->message->expects($this->once())
       ->method('display')
-      ->with("Migration failed with source plugin exception: $exception_message");
+      ->with("Migration failed with source plugin exception: " . Html::escape($exception_message));
 
     $result = $this->executable->import();
     $this->assertEquals(MigrationInterface::RESULT_FAILED, $result);
diff --git a/core/modules/update/update.authorize.inc b/core/modules/update/update.authorize.inc
index b96c904..eb52faa 100644
--- a/core/modules/update/update.authorize.inc
+++ b/core/modules/update/update.authorize.inc
@@ -10,6 +10,7 @@
  * the Update Manager module.
  */
 
+use Drupal\Core\FileTransfer\FileTransferException;
 use Drupal\Core\Updater\UpdaterException;
 use Drupal\Core\Url;
 
@@ -177,9 +178,15 @@ function update_authorize_batch_copy_project($project, $updater_name, $local_url
       $tasks = $updater->install($filetransfer);
     }
   }
+  catch (FileTransferException $e) {
+    $message = t('File Transfer failed, reason: @reason', array('@reason' => strtr($e->getMessage(), $e->arguments)));
+  }
   catch (UpdaterException $e) {
+    $message = $e->getMessage();
+  }
+  if (isset($message)) {
     _update_batch_create_message($context['results']['log'][$project], t('Error installing / updating'), FALSE);
-    _update_batch_create_message($context['results']['log'][$project], $e->getMessage(), FALSE);
+    _update_batch_create_message($context['results']['log'][$project], $message, FALSE);
     $context['results']['log'][$project]['#abort'] = TRUE;
     return;
   }
