Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pleroma
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hakaba Hitoyo
pleroma
Commits
8b080964
Commit
8b080964
authored
Feb 19, 2019
by
kaniini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging: improve visibility into ISE errors
parent
54f9e3d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/pleroma/web/views/error_view.ex
lib/pleroma/web/views/error_view.ex
+5
-2
No files found.
lib/pleroma/web/views/error_view.ex
View file @
8b080964
...
...
@@ -4,13 +4,16 @@
defmodule
Pleroma
.
Web
.
ErrorView
do
use
Pleroma
.
Web
,
:view
require
Logger
def
render
(
"404.json"
,
_assigns
)
do
%{
errors:
%{
detail:
"Page not found"
}}
end
def
render
(
"500.json"
,
_assigns
)
do
%{
errors:
%{
detail:
"Internal server error"
}}
def
render
(
"500.json"
,
assigns
)
do
Logger
.
error
(
"Internal server error:
#{
inspect
(
assigns
[
:reason
])
}
"
)
%{
errors:
%{
detail:
"Internal server error"
,
reason:
inspect
(
assigns
[
:reason
])}}
end
# In case no render clause matches or no
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment