Merge "Provide more information on finding negative group ID"

This commit is contained in:
Han-Wen Nienhuys
2017-11-27 19:16:17 +00:00
committed by Gerrit Code Review

View File

@@ -30,7 +30,8 @@ enum GroupConfigEntry {
int id = config.getInt(SECTION_NAME, super.keyName, -1);
if (id < 0) {
throw new ConfigInvalidException(
String.format("ID of the group %s must not be negative", groupUuid.get()));
String.format(
"ID of the group %s must not be negative, found %d", groupUuid.get(), id));
}
group.setId(new AccountGroup.Id(id));
}