Skip to content
Permalink
Browse files

Merge pull request #19 from ljader/better-log-unreachable-file

Log both source and resolved unreachable properties file paths
  • Loading branch information...
gboissinot committed Jul 28, 2013
2 parents dd3834c + 583fa2b commit b5cc29fc9695087ca017557aa15904d87dd602a4
@@ -44,8 +44,10 @@ public PropertiesVariablesRetriever(String propertiesFilePath, Map<String, Strin
propertiesFilePathResolved = propertiesFilePathResolved.replace("\\", "/");
File propertiesFile = getFile(base, propertiesFilePathResolved);
if (propertiesFile == null) {
String message = String.format("The given properties file path '%s' doesn't exist.", propertiesFilePath);
String message = String.format("The given properties file path '%s' doesn't exist.", propertiesFilePathResolved);
logger.error(message);
String patternMessage = String.format("Missing file path was resolved from pattern '%s' .", propertiesFilePath);
logger.error(patternMessage);
throw new EnvInjectException(message);
}
logger.info(String.format("Injecting as environment variables the properties file path '%s'", propertiesFilePathResolved));

0 comments on commit b5cc29f

Please sign in to comment.
You can’t perform that action at this time.