lib/parse/error.rb in parse-ruby-client-0.1.10 vs lib/parse/error.rb in parse-ruby-client-0.1.11

- old
+ new

@@ -14,11 +14,13 @@ attr_accessor :error attr_accessor :response def initialize(response) @response = response - @code = response["code"] - @error = response["error"] + if response + @code = response["code"] + @error = response["error"] + end super("#{@code}: #{@error}") end end \ No newline at end of file