diff options
-rw-r--r-- | ag-web.rb | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -44,7 +44,7 @@ get '/:list/report/:msgid' do erb :report, locals: { message: result_data, list: params[:list] } rescue Exception => e $stderr.puts e.to_s - status 503 + status 500 end end @@ -79,7 +79,7 @@ post '/report' do erb :reportsent, locals: { message: result_data, list: params[:list], msg: msg } rescue Exception => e $stderr.puts e.to_s - status 503 + status 500 end end @@ -95,7 +95,7 @@ get '/:list/' do erb :listindex, locals: { results: result, list: params[:list], current_monthint: current_monthint } rescue => e $stderr.puts e.to_s - status 503 + status 500 end end @@ -111,7 +111,7 @@ get '/:list/threads/:year-:month/:page?' do erb :listmonth, locals: { results: result, list: params[:list], current_page: current_page, max_pages: max_pages, mode: :threads } rescue => e $stderr.puts e.to_s - status 503 + status 500 end end @@ -127,7 +127,7 @@ get '/:list/messages/:year-:month/:page?' do erb :listmonth, locals: { results: result, list: params[:list], current_page: current_page, max_pages: max_pages, mode: :messages } rescue => e $stderr.puts e.to_s - status 503 + status 500 end end @@ -151,7 +151,7 @@ get '/:list/message/:msgid' do erb :message, locals: { message: result_data, list: params[:list], parent: parent_data, children: child_data } rescue Exception => e $stderr.puts e.to_s - status 503 + status 500 end end |