Skip to content

Commit

Permalink
Add restart_threshold validaiton
Browse files Browse the repository at this point in the history
  • Loading branch information
UoooBarry committed Jan 31, 2024
1 parent 33dc144 commit f2c2be0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configs/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f2c2be0

Please sign in to comment.