lib/detect_language/client.rb in detect_language-1.0.5 vs lib/detect_language/client.rb in detect_language-1.0.6

- old
+ new

@@ -49,10 +49,10 @@ response = JSON.parse(response_body) if response.is_a?(Array) || response["error"].nil? response else - raise Exception.new(response["error"]["message"]) + raise(Error, response["error"]["message"]) end end def request_uri(method) "/#{configuration.api_version}/#{method}"