lib/libgss/action_request.rb in libgss-0.9.0 vs lib/libgss/action_request.rb in libgss-0.10.0

- old
+ new

@@ -68,13 +68,14 @@ @outputs end # レスポンスの処理を行います def process_response(res, req_type) - case res.code.to_i + case res.status.to_i when 200..299 then # OK else - raise Error, "failed to send #{req_type}: [#{res.code}] #{res.content}" + # raise Error, "failed to send #{req_type}: [#{res.status}] #{res.content}" + raise ErrorResponse.build(res) end verify_signature(res) do |content| begin JSON.parse(content) rescue JSON::ParserError => e