<% if (errors) { %>
<% _.each(errors, function(errorObj) { %>
<% if (_.isArray(errorObj['errors'])) { %>
<% _.each(errorObj['errors'], function(err) { %>
<%-errorObj['label']%>:<%- err %>
<% }); %>
<% } else { %>
<%-errorObj['label']%>:<%- errorObj['errors'] %>
<% } %>
<% }); %>
<% } %>