From bd55de169faadc4d7b4792ab567040d4c956fdd5 Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Wed, 13 Jan 2010 00:58:12 +0000 Subject: [PATCH] Another small error handling improvement to not throw away the stack trace git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898589 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java b/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java index 74c4eff6f5..dd5ae1b6ab 100644 --- a/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java +++ b/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java @@ -175,7 +175,7 @@ public class ArtifactInfoFactory { try { modelScreenMap = ScreenFactory.getScreensFromLocation(screenLocation); } catch (Exception exc) { - throw new GeneralException(exc.getMessage()); + throw new GeneralException(exc.toString(), exc); } for (String screenName : modelScreenMap.keySet()) { this.getScreenWidgetArtifactInfo(screenName, screenLocation); @@ -192,7 +192,7 @@ public class ArtifactInfoFactory { try { modelFormMap = FormFactory.getFormsFromLocation(formLocation, this.getEntityModelReader(), this.getDispatchContext()); } catch (Exception exc) { - throw new GeneralException(exc.getMessage()); + throw new GeneralException(exc.toString(), exc); } for (String formName : modelFormMap.keySet()) { this.getFormWidgetArtifactInfo(formName, formLocation);