Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nd3s committed Sep 11, 2020
1 parent 2a1d29a commit 4898276
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 2.4.0

- Add the ToManyRequests errors in case of rate limit exceeded. See [API request limit](https://developers.rdstation.com/en/request-limit) for more details
- Add the TooManyRequests errors in case of rate limit exceeded. See [API request limit](https://developers.rdstation.com/en/request-limit) for more details

## 2.3.1

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Each endpoint may raise errors accoording to the HTTP response code from RDStati
- `RDStation::Error::Conflict` (409)
- `RDStation::Error::UnsupportedMediaType` (415)
- `RDStation::Error::UnprocessableEntity` (422)
- `RDStation::Error::ToManyRequests` (429)
- `RDStation::Error::TooManyRequests` (429)
- `RDStation::Error::InternalServerError` (500)
- `RDStation::Error::NotImplemented` (501)
- `RDStation::Error::BadGateway` (502)
Expand Down
2 changes: 1 addition & 1 deletion lib/rdstation/error/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def from_single_hash

[
{
'error_type' => 'TO_MANY_REQUESTS',
'error_type' => 'TOO_MANY_REQUESTS',
'error_message' => error_message,
'details' => error_hash
}
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/rdstation/error/formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
let(:expected_result) do
[
{
'error_type' => 'TO_MANY_REQUESTS',
'error_type' => 'TOO_MANY_REQUESTS',
'error_message' => "'lead_limiter' rate limit exceeded for 86400 second(s) period for key",
'details' => { 'max' => 24, 'usage' => 55, 'remaining_time' => 20745 }
}
Expand Down

0 comments on commit 4898276

Please sign in to comment.