- added delete result as warn message
authorPatric Plitzner <p.plitzner@bgbm.org>
Thu, 4 Dec 2014 14:30:13 +0000 (14:30 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Thu, 4 Dec 2014 14:30:13 +0000 (14:30 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/operation/DeleteDerivateOperation.java

index b480a0f83cd27dd8cd55c462180f8746a03391f6..678b43e4089603b4e7453f52ef5abb1e6562b858 100644 (file)
@@ -78,12 +78,7 @@ public class DeleteDerivateOperation extends AbstractPostOperation<CdmBase> {
             }
         }
         else{
             }
         }
         else{
-            String exceptionMessage = "";
-            for(Exception exception:deleteResult.getExceptions()){
-                exceptionMessage += exception.getLocalizedMessage();
-            }
-            //TODO: add method to DeleteResult to sum up exceptions
-            MessagingUtils.warningDialog("Deletion failed", this, exceptionMessage);
+            MessagingUtils.warningDialog("Deletion failed", this, deleteResult.toString());
             return Status.CANCEL_STATUS;
         }
         return Status.OK_STATUS;
             return Status.CANCEL_STATUS;
         }
         return Status.OK_STATUS;