lib/leadsquared/api_connection.rb in leadsquared-0.2.0 vs lib/leadsquared/api_connection.rb in leadsquared-0.3.0

- old
+ new

@@ -22,10 +22,10 @@ when 401 raise InvalidRequestError.new("Unauthorized Request") when 404 raise InvalidRequestError.new("API Not Found") when 500 - message = response.body.try(:[], "ExceptionMessage") + message = response.body #.try(:[], "ExceptionMessage") raise InvalidRequestError.new("Internal Error: #{message}") else raise InvalidRequestError.new("Unknown Error#{response.body}") end end