diff --git a/ckanext/odsh/templates/macros/form.html b/ckanext/odsh/templates/macros/form.html
index 7ad0a9f0c777d8dbdce4a3abda8dbdac4f9489fb..8fc3221b5101de0ffdc8ab9784c21b0feff2fb57 100644
--- a/ckanext/odsh/templates/macros/form.html
+++ b/ckanext/odsh/templates/macros/form.html
@@ -33,7 +33,7 @@ is_required=false) %}
     <div class="span6 inline-error">
         {% if error is iterable and error is not string %}
         {{error|first}}
-        {% else %}
+        {% elif error is string %}
         {{error}}
         {% endif %}
     </div>