incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1151170 - in /incubator/lcf/trunk: CHANGES.txt connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Date Tue, 26 Jul 2011 17:02:50 GMT
Author: kwright
Date: Tue Jul 26 17:02:49 2011
New Revision: 1151170

URL: http://svn.apache.org/viewvc?rev=1151170&view=rev
Log:
Fix for CONNECTORS-227.

Modified:
    incubator/lcf/trunk/CHANGES.txt
    incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java

Modified: incubator/lcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/CHANGES.txt?rev=1151170&r1=1151169&r2=1151170&view=diff
==============================================================================
--- incubator/lcf/trunk/CHANGES.txt (original)
+++ incubator/lcf/trunk/CHANGES.txt Tue Jul 26 17:02:49 2011
@@ -3,6 +3,9 @@ $Id$
 
 ======================= 0.3-dev =========================
 
+CONNECTORS-227: Fix the error reporting so it includes the problem message.
+(Piergiorgio Lucidi)
+
 CONNECTORS-221: Add CMIS connector.
 (Piergiorgio Lucidi, Karl Wright)
 

Modified: incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java?rev=1151170&r1=1151169&r2=1151170&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
(original)
+++ incubator/lcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Tue Jul 26 17:02:49 2011
@@ -147,7 +147,7 @@ public class CmisRepositoryConnector ext
             repos = factory.getRepositories(parameters);
             session = repos.get(0).createSession();
           } catch (Exception e) {
-            Logging.connectors.error("CMIS: Error during getting CMIS repositories: please
check the endpoint parameters");
+            Logging.connectors.error("CMIS: Error during getting CMIS repositories. Please
check the endpoint parameters: " + e.getMessage(), e);
             this.exception = e;
           }
           
@@ -160,7 +160,7 @@ public class CmisRepositoryConnector ext
           try {
             session = factory.createSession(parameters);
           } catch (Exception e) {
-            Logging.connectors.error("CMIS: Error during the creation of the new session:
please check the endpoint parameters");
+            Logging.connectors.error("CMIS: Error during the creation of the new session.
Please check the endpoint parameters: " + e.getMessage(), e);
             this.exception = e;
           }
         
@@ -326,7 +326,7 @@ public class CmisRepositoryConnector ext
           else if (thr instanceof RemoteException)
             throw (RemoteException) thr;
           else if (thr instanceof CmisConnectionException)
-            throw new ManifoldCFException("CMIS: Error during getting a new session", thr);
+            throw new ManifoldCFException("CMIS: Error during getting a new session: " +
thr.getMessage(), thr);
           else
             throw (Error) thr;
         }
@@ -419,7 +419,7 @@ public class CmisRepositoryConnector ext
           if (thr instanceof RemoteException)
             throw (RemoteException) thr;
           else if (thr instanceof CmisConnectionException)
-            throw new ManifoldCFException("CMIS: Error during checking connection", thr);
+            throw new ManifoldCFException("CMIS: Error during checking connection: " + thr.getMessage(),
thr);
           else
             throw (Error) thr;
         }



Mime
View raw message