mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +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
|
@Override
|
||||||
public T load(AnnotatedType type, Object o, ConfigLoader configLoader) throws LoadException {
|
public T load(AnnotatedType type, Object o, ConfigLoader configLoader) throws LoadException {
|
||||||
T obj = get((String) o);
|
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 = "[ ]";
|
if(objects.isEmpty()) list = "[ ]";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user