From 9037502a599d6c77e2bfe7c6652f72926f6ec556 Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Mon, 26 Aug 2024 10:03:17 -0500 Subject: [PATCH] Plug Debugger wrap exception text (#1241) Sometimes exceptions print out with really long lines which makes it difficult to read the exceptions on the error page. --- lib/plug/templates/debugger.html.eex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/plug/templates/debugger.html.eex b/lib/plug/templates/debugger.html.eex index 162223ef..692401fa 100644 --- a/lib/plug/templates/debugger.html.eex +++ b/lib/plug/templates/debugger.html.eex @@ -146,8 +146,13 @@ .exception-info > code { line-height: 1.5; + font-size: <%= :math.pow(1.3, -1) %>em; } + .exception-details-text { + white-space: pre-wrap; + } + /* * Code explorer */ @@ -681,7 +686,7 @@ at <%= h method(@conn) %> <%= h @conn.request_path %> -
<%= h @message %>
+
<%= h @message %>
<%= for %{label: label, encoded_handler: encoded_handler} <- @actions do %>