Skip to content

Commit f399647

Browse files
Merge pull request #9842 from Fryguy/better_error
Log a warning and continue on for invalid dev VMs
2 parents 64d5d0b + 8a8d227 commit f399647

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/helpers/application_helper/toolbar_chooser.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def center_toolbar_name_vm_or_template
6868
when ManageIQ::Providers::InfraManager::Template
6969
'x_miq_template_center_tb'
7070
else
71-
raise 'FIXME: this would return "x_# {@button_group}_center_tb' # FIXME: remove this branch
71+
Rails.logger.warn("An unknown object type [#{@record.class.name}] was found when selecting a toolbar. Continuing without a toolbar selection.")
72+
nil
7273
end
7374
else
7475
case x_active_tree

0 commit comments

Comments
 (0)