mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-20 15:27:24 +00:00
sort registry items in error message
This commit is contained in:
1 parent
1892dd1c37
commit
f5fdb6cb30
1 file changed
+1
-1
@@ -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