Nicer formatting for safe_render errors
This commit is contained in:
parent
943da97d6b
commit
46d7bef7e7
|
@ -58,10 +58,10 @@ def safe_render(view, template, assigns \\ %{}) do
|
||||||
rescue
|
rescue
|
||||||
error ->
|
error ->
|
||||||
Logger.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
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue