diff --git a/core/modules/shortcut/src/Controller/ShortcutController.php b/core/modules/shortcut/src/Controller/ShortcutController.php
index 85371dee05ecf84b6466141862ae4d564cc2fbc8..25f32cb466d0f33f02f8d8d24410287a2732ef09 100644
--- a/core/modules/shortcut/src/Controller/ShortcutController.php
+++ b/core/modules/shortcut/src/Controller/ShortcutController.php
@@ -50,7 +50,7 @@ public function deleteShortcutLinkInline(ShortcutInterface $shortcut) {
       drupal_set_message($this->t('The shortcut %title has been deleted.', array('%title' => $label)));
     }
     catch (\Exception $e) {
-      drupal_set_message($this->t('Unable to delete the shortcut for %title.', array('%title' => $label)));
+      drupal_set_message($this->t('Unable to delete the shortcut for %title.', array('%title' => $label)), 'error');
     }
 
     return $this->redirect('<front>');
diff --git a/core/modules/shortcut/src/Controller/ShortcutSetController.php b/core/modules/shortcut/src/Controller/ShortcutSetController.php
index 729430f33c9fb16b33869a399d4e45e2a989c15d..1af8d24d3a125e352a292320e9064e504ea7b2c1 100644
--- a/core/modules/shortcut/src/Controller/ShortcutSetController.php
+++ b/core/modules/shortcut/src/Controller/ShortcutSetController.php
@@ -72,7 +72,7 @@ public function addShortcutLinkInline(ShortcutSetInterface $shortcut_set, Reques
         drupal_set_message($this->t('Added a shortcut for %title.', array('%title' => $shortcut->label())));
       }
       catch (\Exception $e) {
-        drupal_set_message($this->t('Unable to add a shortcut for %title.', array('%title' => $shortcut->label())));
+        drupal_set_message($this->t('Unable to add a shortcut for %title.', array('%title' => $shortcut->label())), 'error');
       }
 
       return $this->redirect('<front>');