lib/koala.rb in koala-1.2.1 vs lib/koala.rb in koala-1.3.0rc1

- old
+ new

@@ -98,11 +98,12 @@ class GraphAndRestAPI < OldAPI; end # Errors class APIError < StandardError - attr_accessor :fb_error_type + attr_accessor :fb_error_type, :raw_response def initialize(details = {}) + self.raw_response = details self.fb_error_type = details["type"] super("#{fb_error_type}: #{details["message"]}") end end end