lib/falconz/rest/get.rb in falconz-1.0.1 vs lib/falconz/rest/get.rb in falconz-1.0.2

- old
+ new

@@ -6,10 +6,10 @@ # modules in order to talk to the API endpoint. module GET def get_request(path) response = HTTParty.get(url + path, headers: header) return response if response.success? - raise response + raise RuntimeError, response end end end end