mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
CLOUD-1988 "Intermittent test failure: org.alfresco.rest.api.tests.CloudOpenCMISTCKTest.testCMISTCKQuery" extra exception logging to help diagnose
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55287 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1657,7 +1657,15 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new CmisRuntimeException("Failed to retrieve content: " + e.getMessage(), e);
|
||||
StringBuilder msg = new StringBuilder("Failed to retrieve content: " + e.getMessage());
|
||||
Throwable cause = e.getCause();
|
||||
if(cause != null)
|
||||
{
|
||||
// add the cause to the CMIS exception
|
||||
msg.append(", ");
|
||||
msg.append(cause.getMessage());
|
||||
}
|
||||
throw new CmisRuntimeException(msg.toString(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user