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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user