Author: kwright
Date: Fri Nov 15 19:14:46 2013
New Revision: 1542370
URL: http://svn.apache.org/r1542370
Log:
Fix check() method to return something useful
Modified:
manifoldcf/branches/CONNECTORS-553/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Modified:
manifoldcf/branches/CONNECTORS-553/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-553/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java?rev=1542370&r1=1542369&r2=1542370&view=diff
==============================================================================
---
manifoldcf/branches/CONNECTORS-553/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
(original)
+++
manifoldcf/branches/CONNECTORS-553/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Fri Nov 15 19:14:46 2013
@@ -163,15 +163,14 @@ public class EmailConnector extends org.
store.connect(server, username, password);
Folder defaultFolder = store.getDefaultFolder();
if (defaultFolder == null) {
- Logging.connectors.error(
- "Email: Error during checking the connection.");
- throw new ManifoldCFException("Email: Error during checking the
connection.");
+ Logging.connectors.warn("Email: Error checking the connection: No
default folder.");
+ throw new ManifoldCFException("Error checking the connection: No
default folder.");
}
} catch (Exception e) {
- Logging.connectors.error(
- "Email: Error during checking the connection.");
- throw new ManifoldCFException("Email: Error during checking the
connection.");
+ Logging.connectors.warn(
+ "Email: Error checking the connection: "+e.getMessage(),e);
+ throw new ManifoldCFException("Error checking the connection:
"+e.getMessage(),e);
}
store = null;
return;