Improve error message output

This commit is contained in:
Felix Niklas 2017-10-05 17:16:16 +02:00
parent caa85bbf5a
commit 55bb97e8f4
3 changed files with 15 additions and 9 deletions

View file

@ -11,10 +11,10 @@
<% else %> <% else %>
<div><%= @exception.message %></div> <div><%= @exception.message %></div>
<% if @exception.backtrace %> <% if @exception.backtrace %>
<div>Traceback:</div> <pre><code>
<% @exception.backtrace.each {|row| %> <% @exception.backtrace.each {|row| %>
<%= row %><br> <%= row %>
<% } %> <% } %></code></pre>
<% end %> <% end %>
<% end %> <% end %>
</body> </body>

View file

@ -11,10 +11,10 @@
<% else %> <% else %>
<div><%= @exception.message %></div> <div><%= @exception.message %></div>
<% if @exception.backtrace %> <% if @exception.backtrace %>
<div>Traceback:</div> <pre><code>
<% @exception.backtrace.each {|row| %> <% @exception.backtrace.each {|row| %>
<%= row %><br> <%= row %>
<% } %> <% } %></code></pre>
<% end %> <% end %>
<% end %> <% end %>
</body> </body>

View file

@ -47,10 +47,16 @@ body.error-message {
height: auto; height: auto;
} }
pre {
text-align: left;
padding-bottom: 1em;
background: white;
color: #222;
}
h1 { h1 {
margin: 0; margin: 0;
color: #444a4f; color: #444a4f;
max-width: 450px;
} }
.dark h1 { .dark h1 {