<% if (it.error) { %> <%= error %> <% } %>
or you can move in here.