Adds more detail on deserialization error case in console.

This commit is contained in:
tastybento 2019-05-05 08:00:34 -07:00
parent 3f54af1dd4
commit 466aa9ff47

View File

@ -249,6 +249,9 @@ public class YamlDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
method.invoke(instance, setTo);
} else {
plugin.logError("Default setting value will be used: " + propertyDescriptor.getReadMethod().invoke(instance));
plugin.logError(method.getName());
plugin.logError(propertyDescriptor.getReadMethod().getName());
plugin.logError(instance.toString());
}
}
}