lib/parse/error.rb in parse-ruby-client-0.1.8 vs lib/parse/error.rb in parse-ruby-client-0.1.9

- old
+ new

@@ -13,17 +13,14 @@ attr_accessor :code attr_accessor :error attr_accessor :response def initialize(response) - #@response = response - #if response.body - # data = JSON.parse response.body - # @code = data["code"] - # @message = data["error"] - #end - - #{}"#{@code}: #{@message}" + @response = response + @code = response["code"] + @error = response["error"] + + super("#{@code}: #{@error}") end end - + end \ No newline at end of file