Commit 70facf5f authored by Emily Ring's avatar Emily Ring

Updated error exception for cluster_type_label

parent 98f64710
......@@ -50,7 +50,7 @@ module ClustersHelper
when 'instance_type'
s_('ClusterIntegration|Instance cluster')
else
Gitlab::ErrorTracking.track_exception(
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(
ArgumentError.new('Cluster Type Missing'),
cluster_error: { error: 'Cluster Type Missing', cluster_type: cluster_type }
)
......
......@@ -84,7 +84,7 @@ describe ClustersHelper do
let(:cluster_type) { 'not_supported' }
it 'Diplays generic cluster and reports error' do
expect(Gitlab::ErrorTracking).to receive(:track_exception).with(
expect(Gitlab::ErrorTracking).to receive(:track_and_raise_for_dev_exception).with(
an_instance_of(ArgumentError),
cluster_error: { error: 'Cluster Type Missing', cluster_type: 'not_supported' }
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment