lib/rock_config/manager.rb in rock_config-0.0.4 vs lib/rock_config/manager.rb in rock_config-0.0.5
- old
+ new
@@ -8,12 +8,12 @@
def fetch(config_name, environment)
if config = @configs[config_name]
if config_for_environment = config[environment]
return config_for_environment
else
- raise EnvironmentNotFoundError,
- 'Environment "%s" not found' % environment
+ raise EnvironmentNotFoundError,
+ 'Environment "%s" not found for config file "%s"' % [environment, config_name]
end
end
end
def initialize_configs
@@ -21,8 +21,7 @@
if config = @scanner.find(key)
hash[key] = config
end
end
end
-
end
end