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 %>
<div><%= @exception.message %></div>
<% if @exception.backtrace %>
<div>Traceback:</div>
<% @exception.backtrace.each {|row| %>
<%= row %><br>
<% } %>
<pre><code>
<% @exception.backtrace.each {|row| %>
<%= row %>
<% } %></code></pre>
<% end %>
<% end %>
</body>

View file

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

View file

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