Improved error message for malformed property values on JNDI Directory Data Connector.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 19 Nov 2004 16:26:18 +0000 (16:26 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 19 Nov 2004 16:26:18 +0000 (16:26 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1193 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/attrresolv/provider/JNDIDirectoryDataConnector.java

index ea3f831..85004b7 100644 (file)
@@ -124,13 +124,11 @@ public class JNDIDirectoryDataConnector extends BaseDataConnector implements Dat
                        log.debug("   Value: (" + propValue + ").");
 
                        if (propName == null || propName.equals("")) {
-                               log.error("Property is malformed.");
-                               throw new ResolutionPlugInException("Property (" + propName
-                                               + ") is malformed.  Connot accept empty property name.");
+                               log.error("Property (" + propName + ") is malformed.  Connot accept empty property name.");
+                               throw new ResolutionPlugInException("Property is malformed.");
                        } else if (propValue == null || propValue.equals("")) {
-                               log.error("Property is malformed.");
-                               throw new ResolutionPlugInException("Property (" + propName
-                                               + ") is malformed.  Cannot accept empty property value.");
+                               log.error("Property (" + propName + ") is malformed.  Cannot accept empty property value.");
+                               throw new ResolutionPlugInException("Property is malformed.");
                        } else {
                                properties.setProperty(propName, propValue);
                        }