Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Register RaiseError Middleware Under Non-Conflicting Name #20

Merged
merged 1 commit into from
Jan 31, 2014

Conversation

jon-eachscape
Copy link
Contributor

This gem includes a the DeskApi::Response::RaiseError middleware, which was registered as :raise_error. However, there is already a built-in middleware from Faraday that is registered under this same name. This causes the built-in middleware to be silently replaced by desk's, which I have observed to break other clients that need to use :raise_error with Faraday.

To fix this, I have changed the registered name of the middleware to :raise_desk_api.

@tstachl tstachl merged commit ce62bc4 into tstachl:master Jan 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants