Skip to content

Commit

Permalink
also log random uknown errors
Browse files Browse the repository at this point in the history
  • Loading branch information
liztownd committed Nov 14, 2024
1 parent 6a4de91 commit 516370d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def get_claims_by_date_range(params = {}) # rubocop:disable Metrics/MethodLength
Rails.logger.error(message: "#{e}, #{e.original_body}")
Faraday::Response.new(response_body: e.original_body, status: e.original_status)
rescue => e
Rails.logger.error(message: "An unknown error occored: #{e}")
Faraday::Response.new(response_body: {
'statusCode' => 520, # Unknown error code
'message' => "An unknown error occored: #{e}",
Expand Down

0 comments on commit 516370d

Please sign in to comment.