Skip to content

Commit

Permalink
Fix case statement
Browse files Browse the repository at this point in the history
It failed with
 	undefined method `start_with?'
  • Loading branch information
bmwiedemann committed Feb 9, 2023
1 parent 466b01a commit caff2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/event/service_fail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def metric_measurement

def metric_tags
error = case payload['error']
when start_with?('bad link:')
when /^bad link:/
'bad_link'
when /^ 400 remote error:.*.service No such file or directory/
'service_missing'
Expand Down

0 comments on commit caff2df

Please sign in to comment.