From e06b4eaf2b7ee2b4e0541072568eae0263ca9c01 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 1 Aug 2023 23:43:55 +0100 Subject: [PATCH] if invalid yml, log as error but let loader continue --- lib/voicemeeter/configs.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/voicemeeter/configs.rb b/lib/voicemeeter/configs.rb index d11299e..0ac7827 100644 --- a/lib/voicemeeter/configs.rb +++ b/lib/voicemeeter/configs.rb @@ -118,6 +118,8 @@ module Voicemeeter symbolize_names: true ) logger.info "#{@kind.name}/#{filename} loaded into memory" + rescue Psych::SyntaxError => e + logger.error "#{e.class.name}: #{e.message}" end end