8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / helpers / pipeline_components_helper.rb
index de951b3a9755639774162062d895bb38ed1b9f59..8f5dba1a87dea86b72615f32a0e87cb917fd684c 100644 (file)
@@ -3,10 +3,13 @@ module PipelineComponentsHelper
     begin
       render(partial: "pipeline_instances/show_components_#{template_suffix}",
              locals: locals)
-    rescue
+    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