This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix missing error templates for non-HTML requests (
#12593
)
master
Eugen Rochko
4 years ago
committed by
GitHub
parent
ab91e7480b
commit
7ee6f51b78
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/application_controller.rb
+ 1
- 1
app/controllers/application_controller.rb
View File
@ -136,6 +136,6 @@ class ApplicationController < ActionController::Base
end
def
respond_with_error
(
code
)
render
"
errors/
#{
code
}
"
,
layout
:
'error'
,
status
:
code
render
"
errors/
#{
code
}
"
,
layout
:
'error'
,
status
:
code
,
formats
:
[
:html
]
end
end
Write
Preview
Loading…
Cancel
Save