From a01ced77dbf8460908ce9db4dc7641fa6eca4248 Mon Sep 17 00:00:00 2001
From: dblouin <dominique.blouin@telecom-paristech.fr>
Date: Mon, 8 Apr 2019 19:05:01 +0200
Subject: [PATCH] Improved exception handling

---
 src/main/java/ui/GTURTLEModeling.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/ui/GTURTLEModeling.java b/src/main/java/ui/GTURTLEModeling.java
index 135af30a7f..288e74b9c5 100644
--- a/src/main/java/ui/GTURTLEModeling.java
+++ b/src/main/java/ui/GTURTLEModeling.java
@@ -7403,7 +7403,7 @@ public class GTURTLEModeling {
                             t = "" + type;
                         }
                         TraceManager.addDev("A badly formed component could not be created in the diagram:" + " diagram: " + tdp + " component:" + n);
-
+                        mme.printStackTrace();
                         UICheckingError ce = new UICheckingError(CheckingError.BEHAVIOR_ERROR, "A component could not be correctly loaded - type=" + t);
                         ce.setTDiagramPanel(tdp);
                         checkingErrors.add(ce);
@@ -7786,7 +7786,7 @@ public class GTURTLEModeling {
 
         } catch (Exception e) {
             TraceManager.addError("Exception XML Component " + e.getMessage() + "trace=" + e.getStackTrace());
-            throw new MalformedModelingException();
+            throw new MalformedModelingException( e );
         }
         return tgc;
     }
-- 
GitLab