Tweak replication action executor exceptions

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-08-12 15:09:03 +00:00
parent 3b0bbb487a
commit 295e83b953

View File

@@ -197,7 +197,7 @@ public class ReplicationActionExecutor extends ActionExecuterAbstractBase {
toTransfer = expandPayload(replicationDef);
} catch(Exception e) {
lock.close();
throw new ReplicationServiceException("Error processing payload list", e);
throw new ReplicationServiceException("Error processing payload list - " + e.getMessage(), e);
}
// Ask the transfer service to do the replication
@@ -220,7 +220,7 @@ public class ReplicationActionExecutor extends ActionExecuterAbstractBase {
if(! (e instanceof TransferCancelledException))
{
lock.close();
throw new ReplicationServiceException("Error executing transfer", e);
throw new ReplicationServiceException("Error executing transfer - " + e.getMessage(), e);
}
}