lib/opensrs/response.rb
# We need to return the error message unless the
# response is successful.
We need to return the error message unless the
response is successful.
We need to return the error message unless the response is successful .
def errors
      if !success?
        if response["response_text"] and response["response_code"]
          "#{response["response_text"]} (Code #{response["response_code"]})"
        else
          "Unknown error"
        end
      end
    end
def errors if ! success? if response [ "response_text" ] and response [ "response_code" ] "#{response["response_text"]} (Code #{response["response_code"]})" else "Unknown error" end end end
We need to return the error message unless the
response is successful.
We need to return the error message unless the response is successful .