app/views/ajax.erb in tailog-0.1.0 vs app/views/ajax.erb in tailog-0.1.1
- old
+ new
@@ -9,7 +9,12 @@
<script type="text/javascript">
window.fileSize = <%= file_size %>;
</script>
<% end %>
<% rescue => error %>
- <div class="alert alert-danger"><%= h error.message %></div>
+ <div class="alert alert-danger">
+ <h4><%= h error.class %>: <%= h error.message %></h4>
+ <% error.backtrace.each do |backtrace| %>
+ <%= h backtrace %><br>
+ <% end %>
+ </div>
<% end %>