Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try to see more information about the error in the stack trace

  • Loading branch information...
commit 89b0576e01cbc92f6504e2218b34d70299d1f679 1 parent 1fa84d5
@gaizka authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/mogli/client.rb
View
2  lib/mogli/client.rb
@@ -212,7 +212,7 @@ def raise_error_if_necessary(data)
self.class.raise_error_by_type_and_message(data["error"]["type"], data["error"]["message"])
end
end
- raise HTTPException if data.respond_to?(:code) and data.code != 200
+ raise HTTPException.new(data) if data.respond_to?(:code) and data.code != 200
end
def fields_to_serialize
Please sign in to comment.
Something went wrong with that request. Please try again.