Sfoglia il codice sorgente

Improve exception message

Lortseam 4 anni fa
parent
commit
d6c3a28a24

+ 1 - 1
src/main/java/me/lortseam/completeconfig/data/Collection.java

@@ -75,7 +75,7 @@ public class Collection implements FlatDataPart<ConfigMap> {
                         }
                         return constructor.newInstance();
                     } catch (NoSuchMethodException | IllegalAccessException | InstantiationException | InvocationTargetException e) {
-                        throw new RuntimeException("Failed to instantiate inner config entry container class", e);
+                        throw new RuntimeException("Failed to instantiate nested config entry container class", e);
                     }
                 }).filter(Objects::nonNull).collect(Collectors.toList()));
             }