1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 module PipelineComponentsHelper
6 def render_pipeline_components(template_suffix, fallback=nil, locals={})
8 render(partial: "pipeline_instances/show_components_#{template_suffix}",
11 logger.error "#{e.inspect}"
12 logger.error "#{e.backtrace.join("\n\t")}"
15 render(partial: "pipeline_instances/show_components_json",
16 locals: {error_name: e.inspect, backtrace: e.backtrace.join("\n\t")})