lib/uffizzi/clients/api/http_client.rb in uffizzi-cli-0.5.0 vs lib/uffizzi/clients/api/http_client.rb in uffizzi-cli-0.5.1

- old
+ new

@@ -34,12 +34,10 @@ request = build_request(uri, params, method, require_cookies) http.request(request) end - if response.instance_of?(Net::HTTPUnauthorized) - raise StandardError.new('Not authorized') - end + raise Uffizzi::Error.new('Not authorized') if response.is_a?(Net::HTTPUnauthorized) response end def build_request(uri, params, method, require_cookies)