<% if (typeof error !== 'undefined' && error) { %>
<%= error %>
<% } %> <% if (typeof success !== 'undefined' && success) { %>
<%= success %>
<% } %>