diff --git a/app/views/static/error.html.erb b/app/views/static/error.html.erb
index b81a62c0a..e0daa2bbd 100644
--- a/app/views/static/error.html.erb
+++ b/app/views/static/error.html.erb
@@ -2,7 +2,7 @@
<%= @exception.class.to_s %> exception raised
- <%= @exception.message %>
- <%- @exception.backtrace.each do |b| -%>
+ <%- Rails.backtrace_cleaner.clean(@exception.backtrace).each do |b| -%>
- <%= b %>
<%- end -%>