strongloop/express

View on GitHub
examples/error-pages/views/500.ejs

Summary

Maintainability
Test Coverage
<%- include('error_header') -%>
<h2>Error: <%= error.message %></h2>
<% if (settings['verbose errors']) { %>
  <pre><%= error.stack %></pre>
<% } else { %>
  <p>An error occurred!</p>
<% } %>
<%- include('footer') -%>