diff --git a/core/modules/system/src/Controller/DbUpdateController.php b/core/modules/system/src/Controller/DbUpdateController.php
index 28ab72b..3780f6d 100644
--- a/core/modules/system/src/Controller/DbUpdateController.php
+++ b/core/modules/system/src/Controller/DbUpdateController.php
@@ -380,7 +380,16 @@ protected function results(Request $request) {
     }
 
     if (!empty($_SESSION['update_success'])) {
-      $message = '<p>' . $this->t('Updates were attempted. If you see no failures below, you may proceed happily back to your <a href="@url">site</a>. Otherwise, you may need to update your database manually.', array('@url' => Url::fromRoute('<front>')->setOption('base_url', $base_url)->toString(TRUE)->getGeneratedUrl())) . ' ' . $log_message . '</p>';
+      $failure_count = $this->getFailureCount();
+      if ($failure_count > 0) {
+        $message = '<p class="error">' . $this->formatPlural($failure_count,
+          '1 update failed while applying database updates. See the failure message below for more information.',
+          '@count updates failed while applying database updates. See the failure messages below for more information.'
+        ) . ' ' . $this->t('You may need to update your database manually.') . '</p>';
+      }
+      else {
+        $message = '<p>' . $this->t('Updates were successful! You may proceed happily back to your <a href="@url">site</a>.', array('@url' => Url::fromRoute('<front>')->setOption('base_url', $base_url)->toString(TRUE)->getGeneratedUrl())) . ' ' . $log_message . '</p>';
+      }
     }
     else {
       $last = reset($_SESSION['updates_remaining']);
@@ -474,6 +483,28 @@ protected function results(Request $request) {
   }
 
   /**
+   * Gets the number of failures in the list of update results.
+   *
+   * @return int
+   *   The number of failures in the list of update results.
+   */
+  protected function getFailureCount() {
+    $count = 0;
+    if (!empty($_SESSION['update_results'])) {
+      foreach ($_SESSION['update_results'] as $module => $updates) {
+        foreach ($updates as $number => $queries) {
+          foreach ($queries as $query) {
+            if (!$query['success']) {
+              $count++;
+            }
+          }
+        }
+      }
+    }
+    return $count;
+  }
+
+  /**
    * Renders a list of requirement errors or warnings.
    *
    * @param \Symfony\Component\HttpFoundation\Request $request
