diff --git a/backend/web/static/base.js b/backend/web/static/base.js
index 1b9cf6bc1c831638dc7cebb17cbbf83430ffcc59..92095ef107faac4f26a4733341eb1e590010bef3 100644
--- a/backend/web/static/base.js
+++ b/backend/web/static/base.js
@@ -706,5 +706,9 @@ $.urlParam = function (name) {
 
 window.alert = function(message) {
   window.console.log("Alert: " + message);
-  renderMessage('', message, "info");
+    var className = "info";
+  if ((new RegExp("error", "i")).test(message)) {
+    className = "danger";
+  }
+  renderMessage('', message, className);
 };