Ugh we're not in ecr :/

This commit is contained in:
Sdogruyol 2016-12-04 16:35:37 +03:00
parent fa4573dcf9
commit 166fb96f34

View file

@ -22,7 +22,7 @@ end
def render_500(context, backtrace, verbosity) def render_500(context, backtrace, verbosity)
message = if verbosity message = if verbosity
"<pre><%= backtrace %></pre>" "<pre>#{HTML.escape(backtrace)}</pre>"
else else
"<p>Something wrong with the server :(</p>" "<p>Something wrong with the server :(</p>"
end end
@ -42,7 +42,7 @@ def render_500(context, backtrace, verbosity)
</head> </head>
<body> <body>
<h2>Kemal has encountered an error. (500)</h2> <h2>Kemal has encountered an error. (500)</h2>
<%= HTML.escape(message) %> #{message}
</body> </body>
</html> </html>
HTML HTML