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
This commit is contained in:
David E. Jones
2010-01-13 00:58:12 +00:00
parent 131ffbb6aa
commit bd55de169f
@@ -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);