From f2c2be07a7180aca57aa9598c2048184e3f6920e Mon Sep 17 00:00:00 2001 From: uooobarry <383435763@qq.com> Date: Wed, 31 Jan 2024 10:35:01 +0800 Subject: [PATCH] Add restart_threshold validaiton --- configs/configuration.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/configuration.rb b/configs/configuration.rb index ff78928..ff02948 100644 --- a/configs/configuration.rb +++ b/configs/configuration.rb @@ -9,6 +9,7 @@ def configuration config = YAML.load_file('configs/settings.yml') raise ConfigError, 'palworld_service is missing.' if config.dig('services', 'palworld_service').blank? + raise ConfigError, 'restart_threshold is missing.' if config.dig('services', 'restart_threshold').blank? config end