Skip to content

Commit

Permalink
Fixes documentation about MetaInspector::TimeoutError. Closes #182
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeiniesta committed Jun 27, 2016
1 parent 9aedd2e commit 4bd9613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -267,13 +267,13 @@ page = MetaInspector.new('www.google', :connection_timeout => 10, :read_timeout
```

If MetaInspector fails to fetch the page after it has exhausted its retries,
it will raise `Faraday::TimeoutError`, which you can rescue in your
it will raise `MetaInspector::TimeoutError`, which you can rescue in your
application code.

```ruby
begin
page = MetaInspector.new(url)
rescue Faraday::TimeoutError
rescue MetaInspector::TimeoutError
enqueue_for_future_fetch_attempt(url)
render_simple(url)
else
Expand Down

0 comments on commit 4bd9613

Please sign in to comment.