quote operative in error messages

This commit is contained in:
onyx-and-iris 2023-08-09 17:45:50 +01:00
parent 00450483a4
commit 4381ed37ff
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ module Voicemeeter
def initialize(kind)
@kind = kind
@configs = Hash.new do |hash, key|
raise Errors::VMError.new "unknown config #{key}. known configs: #{hash.keys}"
raise Errors::VMError.new "unknown config '#{key}'. known configs: #{hash.keys}"
end
@filereader = FileReader.new(kind)
end

View File

@ -112,7 +112,7 @@ module Voicemeeter
kind = Kinds.get(kind_id)
rescue KeyError => e
logger.error "#{e.class.name}: #{e.message}"
raise Errors::VMError.new "unknown Voicemeeter kind #{kind_id}"
raise Errors::VMError.new "unknown Voicemeeter kind '#{kind_id}'"
else
RequestRemote.for(kind, **)
end