lib/gnip_api/response.rb in gnip_api-0.0.9 vs lib/gnip_api/response.rb in gnip_api-1.0.0
- old
+ new
@@ -25,10 +25,10 @@
end
def error_message
if @body && !@body.empty?
parsed = GnipApi::JsonParser.new.parse(@body)
- return parsed['error']['message'] if parsed['error']
+ return parsed
end
return nil
end
end
end