mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-04 23:06:05 +00:00
sort registry items in error message
This commit is contained in:
@@ -38,7 +38,7 @@ public class OpenRegistryImpl<T> implements OpenRegistry<T> {
|
||||
@Override
|
||||
public T load(AnnotatedType type, Object o, ConfigLoader configLoader) throws LoadException {
|
||||
T obj = get((String) o);
|
||||
String list = objects.keySet().stream().reduce("", (a, b) -> a + "\n - " + b);
|
||||
String list = objects.keySet().stream().sorted().reduce("", (a, b) -> a + "\n - " + b);
|
||||
|
||||
if(objects.isEmpty()) list = "[ ]";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user