Permalink
Browse files

raise error if private.key file doesn't exist

Previously we only checked if the settings key exists.  Now that it is
set by default, we need to actually look for the file.
  • Loading branch information...
rekado committed Oct 20, 2014
1 parent 600065e commit 3777649bb09ffe7609c30c4d10b52ec7862c2ae7
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/libertree/server.rb
View
@@ -58,6 +58,10 @@ def self.load_config(config_filename)
if missing.any?
raise ConfigurationError.new("Configuration error: Missing required configuration keys: #{missing.join(', ')}")
end
if ! File.exists?(@conf['private_key_path'])
raise ConfigurationError.new("Configuration error: private key file does not exist.}")
end
end
def self.conf

0 comments on commit 3777649

Please sign in to comment.