rename name to req_name in OBSWSRequestError

patch bump
This commit is contained in:
onyx-and-iris 2023-08-11 13:10:44 +01:00
parent 976c8f19a8
commit 13f57f79f6
3 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ If a connection attempt fails or times out an `OBSWSConnectionError` will be rai
If a request fails an `OBSWSRequestError` will be raised with a status code.
- The request name and code are retrievable through attributes {OBSWSRequestError}.name and {OBSWSRequestError}.code
- The request name and code are retrievable through attributes {OBSWSRequestError}.req_name and {OBSWSRequestError}.code
For a full list of status codes refer to [Codes](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requeststatus)

View File

@ -22,10 +22,10 @@ module OBSWS
class OBSWSConnectionError < OBSWSError; end
class OBSWSRequestError < OBSWSError
attr_reader :name, :code
attr_reader :req_name, :code
def initialize(name, code, msg)
@name = name
def initialize(req_name, code, msg)
@req_name = name
@code = code
@msg = msg
super(message)

View File

@ -11,7 +11,7 @@ module OBSWS
end
def patch
0
1
end
def to_a