Permalink
Browse files

Catching not found

  • Loading branch information...
1 parent ea8ce46 commit c337b4908a030e43ebcaaef8a1d97a69025450ba @pyromaniac pyromaniac committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nano_api/client/search.rb
@@ -25,7 +25,7 @@ def search host, params
params_attributes: search_params
}
)
- rescue RestClient::BadRequest, RestClient::Forbidden => exception
+ rescue RestClient::ResourceNotFound, RestClient::BadRequest, RestClient::Forbidden => exception
[exception.http_body, exception.http_code]
rescue RestClient::InternalServerError
nil

0 comments on commit c337b49

Please sign in to comment.