From: rinpatch Date: Tue, 13 Aug 2019 22:15:18 +0000 (+0300) Subject: Nicer formatting for safe_render errors X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=46d7bef7e7cf63728055a30cbe6cafdda0c9c3d3;p=akkoma Nicer formatting for safe_render errors --- diff --git a/lib/pleroma/web/web.ex b/lib/pleroma/web/web.ex index b42f6887e..687346554 100644 --- a/lib/pleroma/web/web.ex +++ b/lib/pleroma/web/web.ex @@ -58,10 +58,10 @@ defmodule Pleroma.Web do rescue error -> Logger.error( - "#{__MODULE__} failed to render #{inspect({view, template})}: #{inspect(error)}" + "#{__MODULE__} failed to render #{inspect({view, template})}\n" <> + Exception.format(:error, error, __STACKTRACE__) ) - Logger.error(inspect(__STACKTRACE__)) nil end