<% if !warnings.empty? -%>
Warnings:
<% warnings.each do |warning| -%>
* <%= warning %>
<% end -%>
<% if !errors.empty? -%>
Errors:
<% errors.each do |error| -%>
* <%= error %>