Merge branch 'feature/nicer-safe-render-errors' into 'develop'

Nicer formatting for safe_render errors

See merge request pleroma/pleroma!1560
This commit is contained in:
kaniini 2019-08-13 22:25:15 +00:00
commit f5aacaf4d3
1 changed files with 2 additions and 2 deletions

View File

@ -58,10 +58,10 @@ def safe_render(view, template, assigns \\ %{}) 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