Compare commits

..

No commits in common. "662f14282fb7bcfdf1fa9cbaf4b1d61f7341c1d9" and "7e580dc91a39ad186da644fed8adf66a50970efd" have entirely different histories.

2 changed files with 11 additions and 4 deletions

View File

@ -25,12 +25,19 @@ module OBSWS
class OBSWSRequestError < OBSWSError
attr_reader :req_name, :code
def initialize(req_name, code, comment)
def initialize(req_name, code, msg)
@req_name = req_name
@code = code
message = "Request #{@req_name} returned code #{@code}."
message << " With message: #{comment}" if comment
@msg = msg
super(message)
end
def message
msg = [
"Request #{@req_name} returned code #{@code}."
]
msg << "With message: #{@msg}" if @msg
msg.join(" ")
end
end
end

View File

@ -29,8 +29,8 @@ module OBSWS
port = kwargs[:port] || 4455
@password = kwargs[:password] || ""
@subs = kwargs[:subs] || 0
@identified = Identified.new
setup_driver(host, port) and start_driver
@identified = Identified.new
WaitUtil.wait_for_condition(
"successful identification",
delay_sec: 0.01,