Skip to content

Conversation

@iMacTia
Copy link
Member

@iMacTia iMacTia commented Jul 21, 2025

Description

Following #1627, we began to assume that the parameter passed to Faraday::Error#new could only be either and Exception or a Hash.

As demonstrated in #1629, it turns out in the real world we're also passing Faraday::Env instances when building errors, which also respond to each_key and [] too.

Fixes #1629

Following #1627, we began to assume that the parameter passed to `Faraday::Error#new` could only be either and `Exception` or a `Hash`.

As demonstrated in #1629, it turns out in the real world we're also passing `Faraday::Env` instances when building errors, which also respond to `each_key` and `[]` too.
@iMacTia iMacTia self-assigned this Jul 21, 2025
Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable!

@iMacTia iMacTia merged commit 674fc15 into main Jul 22, 2025
8 checks passed
@iMacTia iMacTia deleted the mg/fix-type-assumption branch July 22, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyError: key not found: :status

3 participants