Skip to content

Commit

Permalink
Try to see more information about the error in the stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
gaizka committed Apr 12, 2012
1 parent 1fa84d5 commit 89b0576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mogli/client.rb
Expand Up @@ -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
Expand Down

0 comments on commit 89b0576

Please sign in to comment.