projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma]
/
lib
/
pleroma
/
web
/
views
/
error_view.ex
diff --git
a/lib/pleroma/web/views/error_view.ex
b/lib/pleroma/web/views/error_view.ex
index aefc844fd51db7b9e9b0f283ce8e32adc36a80ca..5cb8669fe413b7f28d5215f34a2d4f8efed11cc1 100644
(file)
--- a/
lib/pleroma/web/views/error_view.ex
+++ b/
lib/pleroma/web/views/error_view.ex
@@
-13,7
+13,11
@@
defmodule Pleroma.Web.ErrorView do
def render("500.json", assigns) do
Logger.error("Internal server error: #{inspect(assigns[:reason])}")
def render("500.json", assigns) do
Logger.error("Internal server error: #{inspect(assigns[:reason])}")
- %{errors: %{detail: "Internal server error", reason: inspect(assigns[:reason])}}
+ if Pleroma.Config.get(:env) != :prod do
+ %{errors: %{detail: "Internal server error", reason: inspect(assigns[:reason])}}
+ else
+ %{errors: %{detail: "Internal server error"}}
+ end
end
# In case no render clause matches or no
end
# In case no render clause matches or no