Permalink
Browse files

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

  • Loading branch information...
1 parent 1fa84d5 commit 89b0576e01cbc92f6504e2218b34d70299d1f679 @gaizka committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mogli/client.rb
View
@@ -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

0 comments on commit 89b0576

Please sign in to comment.