more fixes, remove debug code

This commit is contained in:
Kyle Drake 2013-07-13 17:32:57 +02:00
parent a66bee4b63
commit 10b83629d0
2 changed files with 6 additions and 6 deletions

7
app.rb
View file

@ -20,10 +20,10 @@ error do
EmailWorker.perform_async({
from: 'web@neocities.org',
to: 'errors@neocities.org',
subject: "[NeoCities Error] #{env['sinatra.error'].message}",
body: "#{request.method} #{request.path}\n\n" +
subject: "[NeoCities Error] #{env['sinatra.error'].class}: #{env['sinatra.error'].message}",
body: "#{request.request_method} #{request.path}\n\n" +
(current_site ? "Site: #{current_site.username}\nEmail: #{current_site.email}\n\n" : '') +
env['sinatra.error'].backtrace.to_s
env['sinatra.error'].backtrace.join("\n")
})
slim :'error'
@ -436,7 +436,6 @@ get '/password_reset_confirm' do
end
get '/contact' do
raise 'hell'
slim :'contact'
end

View file

@ -1,5 +1,6 @@
.row
.span8.offset2.text-center
h2 Site Error
h4 There has been an error performing the requested action. We have been notified of the problem.
h5 If you need to add any special information or if this error has not been resolved in a while, <a href="/contact">contact us</a> and report the problem. Thank you!
h4 There has been an error performing the requested action.
h4 We have been notified of the problem.
h5 If you need to add any special information or if this error has not been resolved in a while, <a href="/contact">contact us</a> and report the problem. Thank you!