8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / helpers / pipeline_components_helper.rb
index 28adfa9f99b2152cac5a8c1a98bbb1b544a74c9e..8f5dba1a87dea86b72615f32a0e87cb917fd684c 100644 (file)
@@ -3,12 +3,13 @@ module PipelineComponentsHelper
     begin
       render(partial: "pipeline_instances/show_components_#{template_suffix}",
              locals: locals)
-    rescue Exception => e
+    rescue => e
       logger.error "#{e.inspect}"
       logger.error "#{e.backtrace.join("\n\t")}"
       case fallback
       when :json
-        render(partial: "pipeline_instances/show_components_json")
+        render(partial: "pipeline_instances/show_components_json",
+               locals: {error_name: e.inspect, backtrace: e.backtrace.join("\n\t")})
       end
     end
   end