diff --git a/fml/src/main/java/cpw/mods/fml/common/registry/ObjectHolderRef.java b/fml/src/main/java/cpw/mods/fml/common/registry/ObjectHolderRef.java index a6e838303..f69e6d2a2 100644 --- a/fml/src/main/java/cpw/mods/fml/common/registry/ObjectHolderRef.java +++ b/fml/src/main/java/cpw/mods/fml/common/registry/ObjectHolderRef.java @@ -61,7 +61,7 @@ class ObjectHolderRef { if (this.injectedObject == null || !isValid()) { - throw new IllegalStateException("The ObjectHolder annotation cannot apply to a field that is not an Item or Block"); + throw new IllegalStateException(String.format("The ObjectHolder annotation cannot apply to a field that is not an Item or Block (found : %s at %s.%s)", field.getType().getName(), field.getClass().getName(), field.getName())); } makeWritable(field); }