Send HTTP 500 if we end up in render_error without a more specific status.
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index c169be27044ec5db6e0e8da8b67a0e75f8a1cf8d..1e4094dbc1498d5925719aaff97e88c995515235 100644 (file)
@@ -30,6 +30,7 @@ class ApplicationController < ActionController::Base
   end
 
   def render_error(opts)
+    opts = {status: 500}.merge opts
     respond_to do |f|
       # json must come before html here, so it gets used as the
       # default format when js is requested by the client. This lets