From 4381ed37ff198b6481daae9d9360bac31e7b7dce Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 9 Aug 2023 17:45:50 +0100 Subject: [PATCH] quote operative in error messages --- lib/voicemeeter/configs.rb | 2 +- lib/voicemeeter/remote.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/voicemeeter/configs.rb b/lib/voicemeeter/configs.rb index 62bfce5..aba9cb5 100644 --- a/lib/voicemeeter/configs.rb +++ b/lib/voicemeeter/configs.rb @@ -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 diff --git a/lib/voicemeeter/remote.rb b/lib/voicemeeter/remote.rb index 0c48c7d..ec7a2f4 100644 --- a/lib/voicemeeter/remote.rb +++ b/lib/voicemeeter/remote.rb @@ -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