Skip to content

Commit

Permalink
tweak to message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelarkin committed Aug 6, 2012
1 parent 40831a2 commit d02c353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fetchapp-api-ruby/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ def self.handle_response(response) #:nodoc:
when 200..299 then
response
when 300.399 then
raise(response.messsage)
raise("#{response.message}: #{response['message']}")
when 400..499 then
raise(response.message)
raise("#{response.message}: #{response['message']}")
when 500..599 then
raise(response.message)
raise("#{response.message}: #{response['message']}")
else
raise("Unknown Response")
end
Expand Down

0 comments on commit d02c353

Please sign in to comment.