Show more detailed message when failing to create collection element
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 11 Jun 2018 10:35:59 +0000 (12:35 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 11 Jun 2018 10:35:59 +0000 (12:35 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java

index 71eb7276dd80fdd515082f0cdc718d57b25a6240..9ee433094a9d3657b451bc97931677072c24601b 100644 (file)
@@ -2853,8 +2853,9 @@ public class CdmFormFactory extends FormToolkit {
 
         if (element == null) {
             MessagingUtils.messageDialog("No element for entity", this,
-                    "Could not generate element for entity. Looks like the case is not handled already. Check implementation. Entity: "
-                            + entity, null);
+                    String.format("Could not generate collection element for entity of class %s."
+                            + " Looks like the case is not yet handled. Check implementation.\n"
+                            + "Entity: %s", entity.getClass(), entity.toString()), null);
         }
 
         else{