Skip to content
Draft
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 @@ -187,12 +187,18 @@ private static <T> T load(
if (result.isPresent()) {
return result.get();
} else {
String foundKeys;
if (map == null) {
foundKeys = "No keys found";
} else {
foundKeys = map.keySet().toString();
}
throw new RuntimeException(
"Unable to find required configuration " + readableName + ". Please set using one of:\n" +
"Environment Variable: " + envVar + "\n" +
"Java System Property: " + javaProp + "\n" +
"Entry in config/" + mapYmlFile + ".yml: " + mapKey + "\n" +
"Found following keys: " + map.keySet());
"Found following keys: " + foundKeys);
}
}

Expand Down