Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public class HoconFilesManager implements IRefreshable {

private static final Logger LOGGER = LoggerFactory.getLogger(HoconFilesManager.class);

// default configuration is final as it relies on env variables and system properties
// which should not change on runtime
private final Config defaultConfig;
private final IConfigFileProvider configFileProvider;
// this config is not final to allow re-load
Expand Down Expand Up @@ -169,7 +171,7 @@ private Config loadFromFile(final Path configFile) {
return ConfigFactory.parseReader(reader, options).withFallback(defaultConfig).resolve();
} catch (final IOException | ConfigException e) {
LOGGER.error("Error loading configuration/preference file", e);
throw new GemException("Error loading the configuration/preference file", e);
throw new GemConfigurationException("Error loading the configuration/preference file: " + configFile, e);
}
}

Expand Down