Skip to content

Commit

Permalink
Annotate string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Jun 14, 2022
1 parent 38fa75c commit 6b37bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailosaur.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def handle_http_error(response)
begin
json = JSON.parse(response.body)
json['errors'].each do |err|
message += format('(%s) %s\r\n', err['field'], err['detail'][0]['description'])
message += format('(%<field>s) %<detail>s\r\n', err['field'], err['detail'][0]['description'])
end
rescue StandardError
message = 'Request had one or more invalid parameters.'
Expand Down

0 comments on commit 6b37bb9

Please sign in to comment.