diff --git a/changes/7901.bugfix b/changes/7901.bugfix
new file mode 100644
index 00000000000..ef0128fc31a
--- /dev/null
+++ b/changes/7901.bugfix
@@ -0,0 +1 @@
+Updated Bootstrap alert-error class to alert-danger.
diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py
index a04a7e45c62..9de744013d3 100644
--- a/ckan/lib/helpers.py
+++ b/ckan/lib/helpers.py
@@ -717,7 +717,7 @@ def flash_error(message: Any, allow_html: bool = False) -> None:
message = Markup(message)
else:
message = escape(message)
- flash(message, category='alert-error')
+ flash(message, category='alert-danger')
@core_helper
diff --git a/ckan/templates/group/snippets/info.html b/ckan/templates/group/snippets/info.html
index b8d16afdcb8..6aea336904b 100644
--- a/ckan/templates/group/snippets/info.html
+++ b/ckan/templates/group/snippets/info.html
@@ -51,7 +51,7 @@
{% block follow %}
{% if current_user.is_authenticated %}
{% if error_message %}
-
{{ error_message }}
+ {{ error_message }}
{% endif %}
{% if am_following %}
Unfollow
diff --git a/ckan/templates/organization/snippets/info.html b/ckan/templates/organization/snippets/info.html
index 2bf5bf5db1b..d0e4978a18f 100644
--- a/ckan/templates/organization/snippets/info.html
+++ b/ckan/templates/organization/snippets/info.html
@@ -62,7 +62,7 @@ {{ organization.title or organization.name }}
{% block follow %}
{% if current_user.is_authenticated %}
{% if error_message %}
-
{{ error_message }}
+ {{ error_message }}
{% elif am_following %}
Unfollow
{% else %}
diff --git a/ckan/templates/package/snippets/info.html b/ckan/templates/package/snippets/info.html
index 619d45c9d42..5522ccb138b 100644
--- a/ckan/templates/package/snippets/info.html
+++ b/ckan/templates/package/snippets/info.html
@@ -30,7 +30,7 @@ {{ h.dataset_display_name(pkg) }}
{% block follow_button %}
{% if current_user.is_authenticated %}
{% if error_message %}
- {{ error_message }}
+ {{ error_message }}
{% endif %}
{% if am_following %}
Unfollow
diff --git a/ckan/templates/user/snippets/info.html b/ckan/templates/user/snippets/info.html
index d27f35d13f5..7ba9aca6915 100644
--- a/ckan/templates/user/snippets/info.html
+++ b/ckan/templates/user/snippets/info.html
@@ -58,7 +58,7 @@ {{ user.display_name }}
{% block user_follow %}
{% if current_user.is_authenticated %}
{% if error_message %}
- {{ error_message }}
+ {{ error_message }}
{% endif %}
{% if am_following %}
Unfollow
@@ -109,4 +109,4 @@ {{ user.display_name }}
{% endblock %}
{% endblock %}
-
\ No newline at end of file
+
diff --git a/ckanext/datapusher/templates/datapusher/resource_data.html b/ckanext/datapusher/templates/datapusher/resource_data.html
index d8928d3e9d4..19e3098e00d 100644
--- a/ckanext/datapusher/templates/datapusher/resource_data.html
+++ b/ckanext/datapusher/templates/datapusher/resource_data.html
@@ -8,7 +8,7 @@
{% set show_table = true %}