diff --git a/lib/obsws.rb b/lib/obsws.rb index 066e627..7560261 100644 --- a/lib/obsws.rb +++ b/lib/obsws.rb @@ -28,7 +28,7 @@ module OBSWS def initialize(req_name, code, comment) @req_name = req_name @code = code - message = "Request #{req_name} returned code #{code}." + message = "Request #{@req_name} returned code #{@code}." message << " With message: #{comment}" if comment super(message) end