diff --git a/templates/error.html b/templates/error.html
index 773a6318..c8714c01 100644
--- a/templates/error.html
+++ b/templates/error.html
@@ -4,7 +4,11 @@
-{{ message }}
+{% if message %}
+ {{ message }}
+{% else %}
+ An error occurred.
+{% endif %}