diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/DelegatorFactoryImpl.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/DelegatorFactoryImpl.java index 5be450d71e..e7102c8afa 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/DelegatorFactoryImpl.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/DelegatorFactoryImpl.java @@ -26,13 +26,14 @@ public class DelegatorFactoryImpl extends DelegatorFactory { public static final String module = DelegatorFactoryImpl.class.getName(); + // TODO: this method should propagate the GenericEntityException public Delegator getInstance(String delegatorName) { if (Debug.infoOn()) Debug.logInfo("Creating new delegator [" + delegatorName + "] (" + Thread.currentThread().getName() + ")", module); //Debug.logInfo(new Exception(), "Showing stack where new delegator is being created...", module); try { return new GenericDelegator(delegatorName); } catch (GenericEntityException e) { - Debug.logError(e, "Error creating delegator", module); + Debug.logError(e, "Error creating delegator: " + e.getMessage(), module); return null; } }