mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
no error emails, using airbrake
This commit is contained in:
parent
160dc9e2de
commit
be6c4252ff
1 changed files with 2 additions and 0 deletions
2
app.rb
2
app.rb
|
@ -105,6 +105,7 @@ not_found do
|
||||||
end
|
end
|
||||||
|
|
||||||
error do
|
error do
|
||||||
|
=begin
|
||||||
EmailWorker.perform_async({
|
EmailWorker.perform_async({
|
||||||
from: 'web@neocities.org',
|
from: 'web@neocities.org',
|
||||||
to: 'errors@neocities.org',
|
to: 'errors@neocities.org',
|
||||||
|
@ -112,6 +113,7 @@ error do
|
||||||
body: erb(:'templates/email/error', layout: false),
|
body: erb(:'templates/email/error', layout: false),
|
||||||
no_footer: true
|
no_footer: true
|
||||||
})
|
})
|
||||||
|
=end
|
||||||
|
|
||||||
if @api
|
if @api
|
||||||
api_error 500, 'server_error', 'there has been an unknown server error, please try again later'
|
api_error 500, 'server_error', 'there has been an unknown server error, please try again later'
|
||||||
|
|
Loading…
Add table
Reference in a new issue